aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2022-10-17 18:48:26 -0500
committerSteve French <stfrench@microsoft.com>2022-10-18 11:33:43 -0500
commit053569ccde2a41abcc592781451cd16eaa6e8bab (patch)
treeac5a59779bfe05d8b8c982360f15f609c4e68c9d /fs/cifs/smb2pdu.c
parentcifs: use LIST_HEAD() and list_move() to simplify code (diff)
downloadlinux-dev-053569ccde2a41abcc592781451cd16eaa6e8bab.tar.xz
linux-dev-053569ccde2a41abcc592781451cd16eaa6e8bab.zip
cifs: set rc to -ENOENT if we can not get a dentry for the cached dir
We already set rc to this return code further down in the function but we can set it earlier in order to suppress a smash warning. Also fix a false positive for Coverity. The reason this is a false positive is that this happens during umount after all files and directories have been closed but mosetting on ->on_list to suppress the warning. Reported-by: Dan carpenter <dan.carpenter@oracle.com> Reported-by: coverity-bot <keescook+coverity-bot@chromium.org> Addresses-Coverity-ID: 1525256 ("Concurrent data access violations") Fixes: a350d6e73f5e ("cifs: enable caching of directories for which a lease is held") Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
0 files changed, 0 insertions, 0 deletions