diff options
author | Stanley Chu <stanley.chu@mediatek.com> | 2019-09-12 10:35:27 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-09-12 15:11:56 +0200 |
commit | 8a15b4d7cd872b784f585d38d9240f6ee588381b (patch) | |
tree | e4a4960021786eeeae82b0785a39d8551513a116 /drivers | |
parent | null_blk: validate the number of devices (diff) | |
download | linux-8a15b4d7cd872b784f585d38d9240f6ee588381b.tar.xz linux-8a15b4d7cd872b784f585d38d9240f6ee588381b.zip |
block: bypass blk_set_runtime_active for uninitialized q->dev
Some devices may skip blk_pm_runtime_init() and have null pointer
in its request_queue->dev. For example, SCSI devices of UFS Well-Known
LUNs.
Currently the null pointer is checked by the user of
blk_set_runtime_active(), i.e., scsi_dev_type_resume(). It is better to
check it by blk_set_runtime_active() itself instead of by its users.
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions