Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: f0d1762 ("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]>
- Loading branch information