[PATCHv2] staging: wlan-ng: check return value of kmalloc

2015-05-13 Thread Gujulan Elango, Hari Prasath (H.)
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

Re: [PATCHv2] staging: wlan-ng: check return value of kmalloc

2015-05-13 Thread Dan Carpenter
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