]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Mon, 12 Apr 2021 04:22:17 +0000 (23:22 -0500)
commitc9707b9f049ffa3108221b6cf4d52fd2fd8bbb94
treebe200e58bfea480bc38b7db3e2d30c648ef97507
parentd255b26132de93d3a2d960a3cbe4fe75948f1443
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