Re: [PATCH RESEND] cifsd: fix a IS_ERR() vs NULL bug

2021-03-18 Thread Sergey Senozhatsky
On (21/03/18 16:11), Dan Carpenter wrote: > > The smb_direct_alloc_sendmsg() function never returns NULL, it only > returns error pointers so the check needs to be updated. > > Fixes: cabcebc31de4 ("cifsd: introduce SMB3 kernel server") > Signed-off-by: Dan Carpenter Thanks. Reviewed-by:

[PATCH RESEND] cifsd: fix a IS_ERR() vs NULL bug

2021-03-18 Thread Dan Carpenter
The smb_direct_alloc_sendmsg() function never returns NULL, it only returns error pointers so the check needs to be updated. Fixes: cabcebc31de4 ("cifsd: introduce SMB3 kernel server") Signed-off-by: Dan Carpenter --- RESEND: Oops. I forgot to CC linux-cifs on this. fs/cifsd/transport_rdma.c