check return value of kmalloc before accessing the memory pointer and
return -ENOMEM if allocation fails.
Signed-off-by: Hari Prasath Gujulan Elango
---
v2:Return -ENOMEM for memory allocation failure.
---
drivers/staging/wlan-ng/p80211conv.c | 2 ++
1 file changed, 2 insertions(+)
diff
On Wed, May 13, 2015 at 02:35:25PM +, Gujulan Elango, Hari Prasath (H.)
wrote:
> check return value of kmalloc before accessing the memory pointer and
> return -ENOMEM if allocation fails.
>
Looks good. Thanks!
regards,
dan carpenter
___
devel m