summaryrefslogtreecommitdiffstats
path: root/fs/ksmbd/oplock.c
diff options
context:
space:
mode:
authorHyunchul Lee <hyc.lee@gmail.com>2021-07-09 10:06:33 +0200
committerNamjae Jeon <namjae.jeon@samsung.com>2021-07-10 09:23:58 +0200
commitce154c32af3c60727171ff28ae97bcceda63b1c6 (patch)
tree6884b98757042e1f74a6a4b17bb9b69e1a0f9d51 /fs/ksmbd/oplock.c
parentksmbd: uninterruptible wait for a file being unlocked (diff)
downloadlinux-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.c2
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;
}
/**