Commit 8e2f6a0
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 <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent d782d6e commit 8e2f6a0
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2052 | 2052 | | |
2053 | 2053 | | |
2054 | 2054 | | |
2055 | | - | |
| 2055 | + | |
| 2056 | + | |
2056 | 2057 | | |
2057 | 2058 | | |
2058 | 2059 | | |
2059 | 2060 | | |
2060 | 2061 | | |
2061 | 2062 | | |
2062 | | - | |
| 2063 | + | |
| 2064 | + | |
2063 | 2065 | | |
2064 | 2066 | | |
2065 | 2067 | | |
2066 | | - | |
| 2068 | + | |
2067 | 2069 | | |
2068 | 2070 | | |
2069 | 2071 | | |
| |||
2080 | 2082 | | |
2081 | 2083 | | |
2082 | 2084 | | |
2083 | | - | |
| 2085 | + | |
2084 | 2086 | | |
2085 | 2087 | | |
2086 | 2088 | | |
| |||
3175 | 3177 | | |
3176 | 3178 | | |
3177 | 3179 | | |
3178 | | - | |
3179 | | - | |
| 3180 | + | |
| 3181 | + | |
3180 | 3182 | | |
3181 | 3183 | | |
3182 | 3184 | | |
| |||
0 commit comments