Re: [PATCH] mfd: sm501: Add NULL check on devm_kzalloc return value

2017-11-27 Thread Gustavo A. R. Silva
On 11/23/2017 03:37 AM, Linus Walleij wrote: On Thu, Nov 23, 2017 at 4:50 AM, Gustavo A. R. Silva wrote: Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected with the help of Coccinelle. Fixes: b2e6392f ("i2c: gpio: Conve

Re: [PATCH] mfd: sm501: Add NULL check on devm_kzalloc return value

2017-11-23 Thread Linus Walleij
On Thu, Nov 23, 2017 at 4:50 AM, Gustavo A. R. Silva wrote: > Check return value from call to devm_kzalloc() in order to prevent > a NULL pointer dereference. > > This issue was detected with the help of Coccinelle. > > Fixes: b2e6392f ("i2c: gpio: Convert to use descriptors") > Signed-off-by

[PATCH] mfd: sm501: Add NULL check on devm_kzalloc return value

2017-11-22 Thread Gustavo A. R. Silva
Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected with the help of Coccinelle. Fixes: b2e6392f ("i2c: gpio: Convert to use descriptors") Signed-off-by: Gustavo A. R. Silva --- drivers/mfd/sm501.c | 3 +++ 1 file changed, 3