Commit 7acae61
ceph: fix possible NULL pointer dereference for req->r_session
The request will be inserted into the ci->i_unsafe_dirops before
assigning the req->r_session, so it's possible that we will hit
NULL pointer dereference bug here.
Cc: [email protected]
URL: https://tracker.ceph.com/issues/55327
Signed-off-by: Xiubo Li <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Tested-by: Aaron Tomlin <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>1 parent 396ea16 commit 7acae61
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2274 | 2274 | | |
2275 | 2275 | | |
2276 | 2276 | | |
| 2277 | + | |
| 2278 | + | |
2277 | 2279 | | |
2278 | 2280 | | |
2279 | 2281 | | |
| |||
2294 | 2296 | | |
2295 | 2297 | | |
2296 | 2298 | | |
| 2299 | + | |
| 2300 | + | |
2297 | 2301 | | |
2298 | 2302 | | |
2299 | 2303 | | |
| |||
0 commit comments