UPSTREAM: scsi: ufs: core: sysfs: Prevent div by zero
Prevent a division by 0 when monitoring is not enabled.
Fixes: 1d8613a23f3c ("scsi: ufs: core: Introduce HBA performance monitor sysfs nodes")
Cc: stable@vger.kernel.org
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Link: https://lore.kernel.org/r/20241120062522.917157-1-gwendal@chromium.org
Reviewed-by: Can Guo <quic_cang@quicinc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit eb48e9fc0028bed94a40a9352d065909f19e333c)
BUG=b:245912634
TEST=build and check driver bind
Signed-off-by: Linux Patches Robot <linux-patches-robot@chromeos-missing-patches.google.com.iam.gserviceaccount.com>
Change-Id: Idff314f1f49514554ed55bd5748006aadb3b908a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/6079911
Reviewed-by: Divya Chauhan <chauhandivya@google.com>
Reviewed-by: Daniil Lunev <dlunev@chromium.org>
Commit-Queue: Divya Chauhan <chauhandivya@google.com>
1 file changed