Check the return value of devm_kzalloc() to fix possible NULL pointer
dereference and properly exit the probe() on memory allocation failure.
Signed-off-by: Krzysztof Kozlowski
---
drivers/power/max8925_power.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
Check the return value of devm_kzalloc() to fix possible NULL pointer
dereference and properly exit the probe() on memory allocation failure.
Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com
---
drivers/power/max8925_power.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
Check the return value of devm_kzalloc() to fix possible NULL pointer
dereference and properly exit the probe() on memory allocation failure.
Signed-off-by: Krzysztof Kozlowski
---
drivers/power/max8925_power.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
Check the return value of devm_kzalloc() to fix possible NULL pointer
dereference and properly exit the probe() on memory allocation failure.
Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com
---
drivers/power/max8925_power.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
4 matches
Mail list logo