mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
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 <[email protected]> Signed-off-by: zhengbin <[email protected]> Signed-off-by: Jens Axboe <[email protected]>