Thread (7 messages) 7 messages, 2 authors, 2015-10-04

[PATCH 4/4] nvmem: sunxi: Check for memory allocation failure

From: gregkh@linuxfoundation.org (Greg KH)
Date: 2015-10-04 11:04:29
Also in: lkml

On Wed, Sep 30, 2015 at 01:36:31PM +0100, Srinivas Kandagatla wrote:
From: Maxime Ripard <redacted>

The sunxi_sid driver doesn't check for kmalloc return status before
derefencing the returned pointer, which could lead to a NULL pointer
dereference if kmalloc failed. Check for its return code to make sure it
deosn't happen.

Reported-by: Dan Carpenter <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
 drivers/nvmem/sunxi_sid.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
No signed-off-by: from you on this patch?

:(
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help