aboutsummaryrefslogtreecommitdiffstats
path: root/lib/checksum.c
diff options
context:
space:
mode:
authorWenwen Wang <wenwen@cs.uga.edu>2019-08-19 18:47:34 -0500
committerJeff Layton <jlayton@kernel.org>2019-08-20 05:48:52 -0400
commitcfddf9f4c9f038c91c6c61d5cf3a161731b5c418 (patch)
tree3647a1cbff5b826fc3469f4a9583b2a163e40ed1 /lib/checksum.c
parentlocks: print a warning when mount fails due to lack of "mand" support (diff)
downloadlinux-dev-cfddf9f4c9f038c91c6c61d5cf3a161731b5c418.tar.xz
linux-dev-cfddf9f4c9f038c91c6c61d5cf3a161731b5c418.zip
locks: fix a memory leak bug in __break_lease()
In __break_lease(), the file lock 'new_fl' is allocated in lease_alloc(). However, it is not deallocated in the following execution if smp_load_acquire() fails, leading to a memory leak bug. To fix this issue, free 'new_fl' before returning the error. Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'lib/checksum.c')
0 files changed, 0 insertions, 0 deletions