diff options
author | Zongmin Zhou <[email protected]> | 2023-11-20 23:48:17 +0900 |
---|---|---|
committer | Steve French <[email protected]> | 2023-11-23 20:50:44 -0600 |
commit | 90044481e7cca6cb3125b3906544954a25f1309f (patch) | |
tree | 8c4048dfa62c8303df82003d192519b8a7859a57 /scripts/generate_rust_analyzer.py | |
parent | 98b1cc82c4affc16f5598d4fa14b1858671b2263 (diff) |
ksmbd: prevent memory leak on error return
When allocated memory for 'new' failed,just return
will cause memory leak of 'ar'.
Fixes: 1819a9042999 ("ksmbd: reorganize ksmbd_iov_pin_rsp()")
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Zongmin Zhou<[email protected]>
Acked-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions