diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2021-07-13 03:59:34 +0300 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2021-07-13 04:08:32 +0300 |
commit | f19b3967fb0967aa02b8bfe26ce186ca7525dff7 (patch) | |
tree | 052a477f3cece8b8cf6b9f50be232766a78150c7 /fs/ksmbd/oplock.c | |
parent | 21dd1fd6d718ac59841c3ee3d0b1d82508ef24dc (diff) | |
download | linux-f19b3967fb0967aa02b8bfe26ce186ca7525dff7.tar.xz |
ksmbd: remove unneeded check_context_err
Coverity Scan seems to report false alarm.
*** CID 1505930: (USE_AFTER_FREE)
/fs/ksmbd/smb2pdu.c: 2527 in smb2_open()
>>> CID 1505930: (USE_AFTER_FREE)
>>> Passing freed pointer "context" as an argument to
>>> "check_context_err".
This patch remove unneeded check_context_err to make coverity scan
happy.
Reported-by: Coverity Scan <scan-admin@coverity.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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ksmbd/oplock.c b/fs/ksmbd/oplock.c index 8e53815eedc6..6ace6c2f22dc 100644 --- a/fs/ksmbd/oplock.c +++ b/fs/ksmbd/oplock.c @@ -1446,7 +1446,8 @@ struct lease_ctx_info *parse_lease_state(void *open_req) * @open_req: buffer containing smb2 file open(create) request * @tag: context name to search for * - * Return: pointer to requested context, NULL if @str context not found + * Return: pointer to requested context, NULL if @str context not found + * or error pointer if name length is invalid. */ struct create_context *smb2_find_context_vals(void *open_req, const char *tag) { |