Re: [PATCH] crypto: brcm: add NULL check on of_match_device() return value

2017-07-18 Thread Herbert Xu
On Fri, Jul 07, 2017 at 01:33:33AM -0500, Gustavo A. R. Silva wrote: > Check return value from call to of_match_device() > in order to prevent a NULL pointer dereference. > > In case of NULL print error message and return -ENODEV > > Signed-off-by: Gustavo A. R. Silva

[PATCH] crypto: brcm: add NULL check on of_match_device() return value

2017-07-07 Thread Gustavo A. R. Silva
Check return value from call to of_match_device() in order to prevent a NULL pointer dereference. In case of NULL print error message and return -ENODEV Signed-off-by: Gustavo A. R. Silva --- drivers/crypto/bcm/cipher.c | 5 + 1 file changed, 5 insertions(+) diff