diff options
author | Hyunchul Lee <hyc.lee@gmail.com> | 2021-07-09 10:06:33 +0200 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2021-07-10 09:23:58 +0200 |
commit | ce154c32af3c60727171ff28ae97bcceda63b1c6 (patch) | |
tree | 6884b98757042e1f74a6a4b17bb9b69e1a0f9d51 /fs/ksmbd/oplock.c | |
parent | ksmbd: uninterruptible wait for a file being unlocked (diff) | |
download | linux-ce154c32af3c60727171ff28ae97bcceda63b1c6.tar.xz linux-ce154c32af3c60727171ff28ae97bcceda63b1c6.zip |
ksmbd: make smb2_find_context_vals return NULL if not found
instead of -ENOENT, make smb2_find_context_vals
return NULL if the given context cannot be found.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/oplock.c')
-rw-r--r-- | fs/ksmbd/oplock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ksmbd/oplock.c b/fs/ksmbd/oplock.c index 71063568dfee..8e53815eedc6 100644 --- a/fs/ksmbd/oplock.c +++ b/fs/ksmbd/oplock.c @@ -1472,7 +1472,7 @@ struct create_context *smb2_find_context_vals(void *open_req, const char *tag) next = le32_to_cpu(cc->Next); } while (next != 0); - return ERR_PTR(-ENOENT); + return NULL; } /** |