diff options
| author | Jinyoung Choi <[email protected]> | 2022-02-14 10:33:52 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2022-02-15 03:10:29 +0000 |
| commit | 10af115646171afc0217177d6eae92917b785897 (patch) | |
| tree | c6e3f384f2310377748ff617eb534fb42f3a73d3 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | scsi: lpfc: Fix pt2pt NVMe PRLI reject LOGO loop (diff) | |
| download | kernel-10af115646171afc0217177d6eae92917b785897.tar.gz kernel-10af115646171afc0217177d6eae92917b785897.zip | |
scsi: ufs: core: Fix divide by zero in ufshcd_map_queues()
Before calling blk_mq_map_queues(), the mq_map and nr_queues belonging to
struct blk_mq_queue_map must have a valid value.
If nr_queues is set to 0, the system may encounter a divide by zero
depending on the type of architecture.
blk_mq_map_queues() -> queue_index()
Link: https://lore.kernel.org/r/1891546521.01644873481638.JavaMail.epsvc@epcpadp4
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Jinyoung Choi <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
