summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-06-25 14:01:08 +0300
committerSteve French <stfrench@microsoft.com>2022-06-26 03:52:49 +0300
commit067baa9a37b32b95fdeabccde4b0cb6a2cf95f96 (patch)
treeb6b9a06e704c3cf8479dd464a6facc2d18995cf5 /tools/perf/scripts/python
parentb5e5f9dfc915ff05b41dff56181e1dae101712bd (diff)
downloadlinux-067baa9a37b32b95fdeabccde4b0cb6a2cf95f96.tar.xz
ksmbd: use vfs_llseek instead of dereferencing NULL
By not checking whether llseek is NULL, this might jump to NULL. Also, it doesn't check FMODE_LSEEK. Fix this by using vfs_llseek(), which always does the right thing. Fixes: f44158485826 ("cifsd: add file operations") Cc: stable@vger.kernel.org Cc: linux-cifs@vger.kernel.org Cc: Ronnie Sahlberg <lsahlber@redhat.com> Cc: Hyunchul Lee <hyc.lee@gmail.com> Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Reviewed-by: Namjae Jeon <linkinjeon@kernel.org> Acked-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions