cifsd: fix a IS_ERR() vs NULL bug
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 18 Mar 2021 13:09:37 +0000 (16:09 +0300)
committerSteve French <stfrench@microsoft.com>
Tue, 11 May 2021 00:15:20 +0000 (19:15 -0500)
commit8ef32967065737dac51974efae333436354bea0a
tree5bc05911f98f11fcc59a843a72646e3f86a1269f
parent86df49e105afa6a205abb7d90809c3c76136eaa9
cifsd: fix a IS_ERR() vs NULL bug

The smb_direct_alloc_sendmsg() function never returns NULL, it only
returns error pointers so the check needs to be updated.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/transport_rdma.c