diff options
author | Jason A. Donenfeld <[email protected]> | 2022-06-25 13:01:08 +0200 |
---|---|---|
committer | Steve French <[email protected]> | 2022-06-25 19:52:49 -0500 |
commit | 067baa9a37b32b95fdeabccde4b0cb6a2cf95f96 (patch) | |
tree | b6b9a06e704c3cf8479dd464a6facc2d18995cf5 /lib/mpi/mpi-cmp.c | |
parent | b5e5f9dfc915ff05b41dff56181e1dae101712bd (diff) |
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: [email protected]
Cc: [email protected]
Cc: Ronnie Sahlberg <[email protected]>
Cc: Hyunchul Lee <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Reviewed-by: Namjae Jeon <[email protected]>
Acked-by: Al Viro <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions