diff options
| author | 2022-05-27 23:28:18 +0800 | |
|---|---|---|
| committer | 2022-05-27 09:49:48 -0600 | |
| commit | 40f567bbb3b0639d2ec7d1c6ad4b1b018f80cf19 (patch) | |
| tree | 0557e29ac47e09c9183fba2d9e09a085b63be377 /drivers/net/netdevsim/git:/ssh:/git@git.zx2c4.com | |
| parent | bcache: memset on stack variables in bch_btree_check() and bch_sectors_dirty_init() (diff) | |
| download | linux-dev-40f567bbb3b0639d2ec7d1c6ad4b1b018f80cf19.tar.xz linux-dev-40f567bbb3b0639d2ec7d1c6ad4b1b018f80cf19.zip | |
md: bcache: check the return value of kzalloc() in detached_dev_do_request()
The function kzalloc() in detached_dev_do_request() can fail, so its
return value should be checked.
Fixes: bc082a55d25c ("bcache: fix inaccurate io state for detached bcache devices")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20220527152818.27545-4-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/net/netdevsim/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
