summaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy.c
diff options
context:
space:
mode:
authorIvan Abramov <i.abramov@mt-integration.ru>2025-03-10 17:04:06 +0300
committerSteve French <stfrench@microsoft.com>2025-03-24 17:45:07 +0300
commit9fb2e20e4f6acade2807d35cea3318786866d08d (patch)
tree6ac044c49266a7b97cca418633d9abebd4457fde /lib/test_fortify/write_overflow-strncpy.c
parentfaf1b64888ff13caa94fa09835fcfdabee18b057 (diff)
downloadlinux-9fb2e20e4f6acade2807d35cea3318786866d08d.tar.xz
smb: client: Remove redundant check in cifs_oplock_break()
There is an unnecessary NULL check of inode in cifs_oplock_break(), since there are multiple dereferences of cinode prior to it. Based on usage of cifs_oplock_break() in cifs_new_fileinfo() we can safely assume that inode is not NULL, so there is no need to check inode in cifs_oplock_break() at all. Therefore, this redundant check can be removed. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Ivan Abramov <i.abramov@mt-integration.ru> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions