Files
linux/drivers/scsi
Jinyoung Choi 10af115646 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]>
2022-02-14 22:10:29 -05:00
..
…
2021-01-22 21:14:08 -05:00
2021-01-22 21:14:07 -05:00
…
…
…
…
…
…
2021-01-22 21:14:08 -05:00
…
…
2020-09-02 22:49:06 -04:00
…
…
2021-10-16 21:45:56 -04:00
2021-04-13 00:20:48 -04:00
2020-12-07 20:24:09 -05:00
…
…
2021-10-16 21:29:15 -04:00
…
…
2022-01-25 00:09:41 -05:00
…
2020-12-07 20:24:09 -05:00
…
2021-05-21 16:59:33 -04:00
…
…
2021-03-24 23:03:43 -04:00
2022-01-22 08:33:37 +02:00
…
2021-12-22 23:41:13 -05:00
…
2021-08-23 12:54:30 -06:00
2021-04-13 00:20:48 -04:00
…
…