diff options
author | zhengbin <[email protected]> | 2019-08-13 19:27:40 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2019-09-04 07:01:02 -0600 |
commit | d821cce8ac4625ceecabb9c9e2420daaf41d41d8 (patch) | |
tree | d959fdc796f3db1c7c06d7f626c5462c4ce79d7a /lib/dynamic_debug.c | |
parent | ecf4d59a4ebf1237bde1cb2de71a0a6e927d4b0c (diff) |
paride/pcd: need to set queue to NULL before put_disk
In pcd_init_units, if blk_mq_init_sq_queue fails, need to set queue to
NULL before put_disk, otherwise null-ptr-deref Read will occur.
put_disk
kobject_put
disk_release
blk_put_queue(disk->queue)
Fixes: f0d176255401 ("paride/pcd: Fix potential NULL pointer dereference and mem leak")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: zhengbin <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions