aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/lib/py/load.py
diff options
context:
space:
mode:
authorWang Zhaolong <[email protected]>2025-04-30 03:16:23 +0000
committerSteve French <[email protected]>2025-05-01 23:58:48 +0000
commiteb4447bcce915b43b691123118893fca4f372a8f (patch)
tree0e4af178e014c44e53b22c05903d15e2f9cc69b0 /tools/testing/selftests/drivers/net/lib/py/load.py
parentksmbd: prevent rename with empty string (diff)
downloadkernel-eb4447bcce915b43b691123118893fca4f372a8f.tar.gz
kernel-eb4447bcce915b43b691123118893fca4f372a8f.zip
ksmbd: fix memory leak in parse_lease_state()
The previous patch that added bounds check for create lease context introduced a memory leak. When the bounds check fails, the function returns NULL without freeing the previously allocated lease_ctx_info structure. This patch fixes the issue by adding kfree(lreq) before returning NULL in both boundary check cases. Fixes: bab703ed8472 ("ksmbd: add bounds check for create lease context") Signed-off-by: Wang Zhaolong <[email protected]> Acked-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/lib/py/load.py')
0 files changed, 0 insertions, 0 deletions