diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-02-20 16:27:05 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-03-01 00:01:36 +0300 |
commit | 4d7c1d3fd7c7eda7dea351f071945e843a46c145 (patch) | |
tree | ee56665588e6be4257fd7ac2d787e00ad6f2bb7a /drivers/block | |
parent | dce30ca9e3b676fb288c33c1f4725a0621361185 (diff) | |
download | linux-4d7c1d3fd7c7eda7dea351f071945e843a46c145.tar.xz |
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>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions