aboutsummaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2022-01-12 12:29:04 +0800
committerIlya Dryomov <idryomov@gmail.com>2022-01-26 20:17:50 +0100
commit89d43d0551a848e70e63d9ba11534aaeabc82443 (patch)
treeec5160adc017dd964214e674dea7b004d434374b /net/mac80211
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff)
ceph: put the requests/sessions when it fails to alloc memory
When failing to allocate the sessions memory we should make sure the req1 and req2 and the sessions get put. And also in case the max_sessions decreased so when kreallocate the new memory some sessions maybe missed being put. And if the max_sessions is 0 krealloc will return ZERO_SIZE_PTR, which will lead to a distinct access fault. URL: https://tracker.ceph.com/issues/53819 Fixes: e1a4541ec0b9 ("ceph: flush the mdlog before waiting on unsafe reqs") Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net/mac80211')
0 files changed, 0 insertions, 0 deletions