summaryrefslogtreecommitdiff
path: root/kexec/ifdown.c
diff options
context:
space:
mode:
authorqiuguorui1 <qiuguorui1@huawei.com>2020-12-01 12:06:16 +0800
committerSimon Horman <horms@verge.net.au>2020-12-09 13:42:16 +0100
commitfa917094e1a9a6d75fb0bdfeb9b4aebc1b9f87d6 (patch)
tree1c32b181de9964f6064819520fcfc0e21e586473 /kexec/ifdown.c
parentd4eaff6b84292ca0231505c4aba8cc6b55df79e3 (diff)
dt-ops: fix memory leak when new_node malloc fails
In function dtb_set_property, when malloc new_node fails, we need to free new_dtb before return. Fixes: f56cbcf4c2766 ("kexec/dt-ops.c: Fix '/chosen' v/s 'chosen' node being passed to fdt helper functions") Signed-off-by: qiuguorui1 <qiuguorui1@huawei.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/ifdown.c')
0 files changed, 0 insertions, 0 deletions