commit | fb727077b04f768d0c79d9aa29e958262a9e3d9e | [log] [tgz] |
---|---|---|
author | Maxime Ripard <maxime.ripard@free-electrons.com> | Wed Sep 30 13:36:31 2015 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Oct 04 12:09:43 2015 +0100 |
tree | c2e6b283f38ec0aa7cdf790bae2b941901b41b5e | |
parent | ace22170655f61d82fff95e57d673bf847a32a03 [diff] |
nvmem: sunxi: Check for memory allocation failure 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 <dan.carpenter@oracle.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>