Commit bf730b3
anolis: cachefiles: fix potential NULL in error path
ANBZ: #3213
When entering the error path, the request may not have been allocated or
req->object may not have been initialized.
Fixes: 5d1970f ("anolis: cachefiles: resend an open request if the read request's object is closed")
Reported-by: Jia Zhu <[email protected]>
Signed-off-by: Jingbo Xu <[email protected]>
Reviewed-by: Joseph Qi <[email protected]>
Link: https://gitee.com/anolis/cloud-kernel/pulls/10221 parent a5a0ae7 commit bf730b3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| |||
0 commit comments