Re: [PATCH] staging: wilc1000: return -ENOMEM when kmalloc failed

2015-10-25 Thread Greg KH
On Thu, Oct 22, 2015 at 12:07:36AM +0100, Luis de Bethencourt wrote: > The driver is using -1 instead of the -ENOMEM defined macro to specify that > a buffer allocation failed. > > Fixes smatch warning and similars: > drivers/staging/wilc1000/host_interface.c:1782 Handle_Key() warn: > returning

[RESEND PATCH] staging: wilc1000: return -ENOMEM when kmalloc failed

2015-10-25 Thread Luis de Bethencourt
The driver is using -1 instead of the -ENOMEM defined macro to specify that a buffer allocation failed. Fixes smatch warning and similars: drivers/staging/wilc1000/host_interface.c:1757 Handle_Key() warn: returning -1 instead of -ENOMEM is sloppy Signed-off-by: Luis de Bethencourt

[PATCH] staging: wilc1000: return -ENOMEM when kmalloc failed

2015-10-21 Thread Luis de Bethencourt
The driver is using -1 instead of the -ENOMEM defined macro to specify that a buffer allocation failed. Fixes smatch warning and similars: drivers/staging/wilc1000/host_interface.c:1782 Handle_Key() warn: returning -1 instead of -ENOMEM is sloppy Signed-off-by: Luis de Bethencourt