]> git.baikalelectronics.ru Git - kernel.git/commit
paride/pcd: need to check if cd->disk is null in pcd_detect
authorzhengbin <zhengbin13@huawei.com>
Tue, 13 Aug 2019 11:23:12 +0000 (19:23 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Sep 2019 13:04:37 +0000 (07:04 -0600)
commit1ae90b8ddaf59b9f66162ac77f9f141a2421a2f6
treedbc9da4498d452c697d49b260b871af42cf40be7
parentb22129c922b0a3722722a9edff849bd86ebee4d5
paride/pcd: need to check if cd->disk is null in pcd_detect

If alloc_disk fails in pcd_init_units, cd->disk & pi are empty, we need
to check if cd->disk is null in pcd_detect.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/paride/pcd.c