2021-09-30 21:24 GMT+09:00, Dan Carpenter <dan.carpenter@xxxxxxxxxx>: > The kmalloc() does not have a NULL check. This code can be re-written > slightly cleaner to just use the kstrdup(). > > Fixes: 265fd1991c1d ("ksmbd: use LOOKUP_BENEATH to prevent the out of share > access") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Acked-by: Namjae Jeon <linkinjeon@xxxxxxxxxx> Thanks for your patch!