summaryrefslogtreecommitdiffstats
path: root/lib/sg_split.c
diff options
context:
space:
mode:
authorWenwen Wang <wenwen@cs.uga.edu>2019-08-19 22:24:50 -0500
committerRichard Weinberger <richard@nod.at>2019-09-15 22:11:58 +0200
commit7992e00469c485f108a7f0da08be34b0fa441f79 (patch)
tree57d0538e97c1a1b1c4a8bf0eb98d90f94043af6f /lib/sg_split.c
parentce4d8b16e64d062f1c6271a0068dbbbba2dee620 (diff)
downloadlinux-7992e00469c485f108a7f0da08be34b0fa441f79.tar.bz2
ubifs: Fix memory leak in __ubifs_node_verify_hmac error path
In __ubifs_node_verify_hmac(), 'hmac' is allocated through kmalloc(). However, it is not deallocated in the following execution if ubifs_node_calc_hmac() fails, leading to a memory leak bug. To fix this issue, free 'hmac' before returning the error. Fixes: 49525e5eecca ("ubifs: Add helper functions for authentication support") Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'lib/sg_split.c')
0 files changed, 0 insertions, 0 deletions