commit | 4d7c1d3fd7c7eda7dea351f071945e843a46c145 | [log] [tgz] |
---|---|---|
author | zhengbin <zhengbin13@huawei.com> | Wed Feb 20 21:27:05 2019 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Feb 28 14:01:36 2019 -0700 |
tree | ee56665588e6be4257fd7ac2d787e00ad6f2bb7a | |
parent | dce30ca9e3b676fb288c33c1f4725a0621361185 [diff] |
block: fix NULL pointer dereference in register_disk If __device_add_disk-->bdi_register_owner-->bdi_register--> bdi_register_va-->device_create_vargs fails, bdi->dev is still NULL, __device_add_disk-->register_disk will visit bdi->dev->kobj. This patch fixes that. Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>