[PATCH v2] bus: fsl-mc: Check return value of platform_get_resource()

2025-08-25 Thread Salah Triki
platform_get_resource() returns NULL in case of failure, so check its return value and propagate the error in order to prevent NULL pointer dereference. Fixes: 6305166c8771 ("bus: fsl-mc: Add ACPI support for fsl-mc") Cc: Signed-off-by: Salah Triki --- Changes in v2: - Add Fixes a

[PATCH] bus: fsl-mc: Check return value of platform_get_resource()

2025-07-24 Thread Salah Triki
platform_get_resource() returns NULL in case of failure, so check its return value and propagate the error in order to prevent NULL pointer dereference. Signed-off-by: Salah Triki --- drivers/bus/fsl-mc/fsl-mc-bus.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/bus/fsl-mc/fsl

[PATCH] replace if with min

2021-07-12 Thread Salah Triki
Replace if with min in order to make code more clean. Signed-off-by: Salah Triki --- drivers/crypto/nx/nx-842.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/nx/nx-842.c b/drivers/crypto/nx/nx-842.c index 2ab90ec10e61..0d1d5a463899 100644 --- a/drivers