2023-11-09 10:17 GMT+09:00, Zongmin Zhou <min_halo@xxxxxxx>: > When allocated memory for 'new' failed,just return > will cause memory leak of 'ar'. > > v2: rollback iov_alloc_cnt when allocate memory failed. > > Fixes: 1819a9042999 ("ksmbd: reorganize ksmbd_iov_pin_rsp()") > > Reported-by: kernel test robot <lkp@xxxxxxxxx> > Reported-by: Dan Carpenter <error27@xxxxxxxxx> > Closes: https://lore.kernel.org/r/202311031837.H3yo7JVl-lkp@xxxxxxxxx/ > Signed-off-by: Zongmin Zhou<zhouzongmin@xxxxxxxxxx> Acked-by: Namjae Jeon <linkinjeon@xxxxxxxxxx> Applied it #ksmbd-for-next-next. Thanks for your patch.