Skip to content
Commit eb48e9fc authored by Gwendal Grignou's avatar Gwendal Grignou Committed by Martin K. Petersen
Browse files

scsi: ufs: core: sysfs: Prevent div by zero



Prevent a division by 0 when monitoring is not enabled.

Fixes: 1d8613a2 ("scsi: ufs: core: Introduce HBA performance monitor sysfs nodes")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarGwendal Grignou <gwendal@chromium.org>
Link: https://lore.kernel.org/r/20241120062522.917157-1-gwendal@chromium.org


Reviewed-by: default avatarCan Guo <quic_cang@quicinc.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 35002a8e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment