diff options
| author | Pali Rohár <[email protected]> | 2024-12-28 20:21:56 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2025-01-20 01:58:11 +0000 |
| commit | 10e6fe53d90b550876bffc5847107c5372c01084 (patch) | |
| tree | 1c41ae64d46bcb577ebd8d8422e198db72b7bcc9 /drivers/platform/x86/intel/pmt/class.c | |
| parent | cifs: Do not attempt to call CIFSSMBRenameOpenFile() without CAP_INFOLEVEL_PA... (diff) | |
| download | kernel-10e6fe53d90b550876bffc5847107c5372c01084.tar.gz kernel-10e6fe53d90b550876bffc5847107c5372c01084.zip | |
cifs: Do not attempt to call CIFSGetSrvInodeNumber() without CAP_INFOLEVEL_PASSTHRU
CIFSGetSrvInodeNumber() uses SMB_QUERY_FILE_INTERNAL_INFO (0x3ee) level
which is SMB PASSTHROUGH level (>= 0x03e8). SMB PASSTHROUGH levels are
supported only when server announce CAP_INFOLEVEL_PASSTHRU.
So add guard in cifs_query_file_info() function which is the only user of
CIFSGetSrvInodeNumber() function and returns -EOPNOTSUPP when server does
not announce CAP_INFOLEVEL_PASSTHRU.
Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
