drivers: block: rnbd: Handle generic ERR_PTR returns safely in find_and_get_or_create_sess()#281
Conversation
|
Upstream branch: dd72c8f |
aca8ada to
97c47c0
Compare
|
Upstream branch: dcb6fa3 |
b108349 to
68e37f5
Compare
3167cf1 to
151715e
Compare
|
Upstream branch: dcb6fa3 |
68e37f5 to
6ba73f3
Compare
151715e to
629ead1
Compare
|
Upstream branch: dcb6fa3 |
6ba73f3 to
1d28b48
Compare
629ead1 to
c01bcb5
Compare
|
Upstream branch: 6146a0f |
1d28b48 to
be0000a
Compare
c01bcb5 to
e65f0f5
Compare
|
Upstream branch: c9cfc12 |
be0000a to
ae9b7d2
Compare
e65f0f5 to
d9a4e6e
Compare
|
Upstream branch: c9cfc12 |
ae9b7d2 to
1b05f40
Compare
d9a4e6e to
4919429
Compare
|
Upstream branch: 4a0c9b3 |
1b05f40 to
d4c706b
Compare
434ff52 to
4e56068
Compare
|
Upstream branch: 4a0c9b3 |
d4c706b to
66959fe
Compare
4e56068 to
a3901cb
Compare
|
Upstream branch: 4a0c9b3 |
66959fe to
63672be
Compare
a3901cb to
f699346
Compare
|
Upstream branch: e9a6fb0 |
63672be to
659d84e
Compare
f699346 to
83d3e2f
Compare
|
Upstream branch: 6da43bb |
659d84e to
8a49a3d
Compare
83d3e2f to
00d5e5c
Compare
|
Upstream branch: f824272 |
8a49a3d to
fc4734b
Compare
00d5e5c to
d782508
Compare
|
Upstream branch: f824272 |
fc4734b to
69d422c
Compare
d782508 to
6099a4d
Compare
|
Upstream branch: e7c375b |
69d422c to
03b97bc
Compare
6099a4d to
5121c4d
Compare
|
Upstream branch: e7c375b |
03b97bc to
3b0481b
Compare
5121c4d to
4458758
Compare
|
Upstream branch: 8b69055 |
…nd_get_or_create_sess() Fix the issue detected by the smatch tool. drivers/block/rnbd/rnbd-clt.c:1241 find_and_get_or_create_sess() error: 'sess' dereferencing possible ERR_PTR() find_and_get_or_create_sess() only checks for ERR_PTR(-ENOMEM) after calling find_or_create_sess(). In other encoded failures, the code may dereference the error pointer when accessing sess->nr_poll_queues, resulting ina kernel oops. By preserving the existing -ENOMEM behaviour and log unexpected errors to assist in debugging. This change eliminates a potential invalid pointer dereference without altering the function's logic or intenet. Tested by compiling using smatch tool. Signed-off-by: Ranganath V N <vnranganath.20@gmail.com>
3b0481b to
b1c8182
Compare
Pull request for series with
subject: drivers: block: rnbd: Handle generic ERR_PTR returns safely in find_and_get_or_create_sess()
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1013849