]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ksmbd: fix open failure from block and char device file
authorNamjae Jeon <linkinjeon@kernel.org>
Tue, 24 Sep 2024 13:39:29 +0000 (22:39 +0900)
committerSteve French <stfrench@microsoft.com>
Thu, 26 Sep 2024 02:33:19 +0000 (21:33 -0500)
commit8e2f6a0e2dc9db663b4ba2225822e7a3c4047bfb
tree588d66ae752bbddabea44189a94c164d61082e35
parentd782d6e1d9078d6b82f8468dd6421050165e7d75
ksmbd: fix open failure from block and char device file

char/block device file can't be opened with dentry_open() if device driver
is not loaded. Use O_PATH flags for fake opening file to handle it if file
is a block or char file.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c