WSL2-Linux-Kernel/drivers/platform/mellanox
Dan Carpenter fdf8f33e7d platform/mellanox: mlxbf-pmc: fix sscanf() error checking
commit 95e4b25192 upstream.

The sscanf() function never returns negatives.  It returns the number of
items successfully read.

Fixes: 1a218d312e ("platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/4ccdfd28-099b-40bf-8d77-ad4ea2e76b93@kili.mountain
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-30 13:55:33 +01:00
..
Kconfig platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver 2020-10-28 12:00:24 +01:00
Makefile platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver 2020-10-28 12:00:24 +01:00
mlxbf-bootctl.c platform/mellanox: Typo fix in the file mlxbf-bootctl.c 2021-03-23 21:06:04 +01:00
mlxbf-bootctl.h platform/mellanox: Add bootctl driver for Mellanox BlueField Soc 2019-10-15 10:55:10 +03:00
mlxbf-pmc.c platform/mellanox: mlxbf-pmc: fix sscanf() error checking 2023-05-30 13:55:33 +01:00
mlxbf-tmfifo-regs.h platform/mellanox: Add TmFifo driver for Mellanox BlueField Soc 2019-05-06 17:54:42 +03:00
mlxbf-tmfifo.c platform/mellanox: mlxbf-tmfifo: Fix a memory barrier issue 2021-05-19 15:24:52 +02:00
mlxreg-hotplug.c platform/mellanox: mlxreg-hotplug: Revert "move to use request_irq by IRQF_NO_AUTOEN flag" 2021-06-04 22:03:13 +02:00
mlxreg-io.c platform/mellanox: mlxreg-io: Fix read access of n-bytes size attributes 2021-10-11 14:57:22 +02:00