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

From: Sergey Senozhatsky
Date: Fri Mar 19 2021 - 00:44:40 EST

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 <dan.carpenter@xxxxxxxxxx>


Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>