diff options
| author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-10-04 13:58:43 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-10 11:21:09 +0100 |
| commit | 265c6b8ab54cf46ac4e3c768f2be1489dc13a494 (patch) | |
| tree | 36a61c85b5c823242f9bb73e780d8eb20fdd6f8e /net/ipv4/tcp_ipv4.c | |
| parent | 5500494160247be0356bd7235f37093362061125 (diff) | |
of: unittest: fix memory leak in unittest_data_add
[ Upstream commit e13de8fe0d6a51341671bbe384826d527afe8d44 ]
In unittest_data_add, a copy buffer is created via kmemdup. This buffer
is leaked if of_fdt_unflatten_tree fails. The release for the
unittest_data buffer is added.
Fixes: b951f9dc7f25 ("Enabling OF selftest to run without machine's devicetree")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions
