Thread (2 messages) read the whole thread 2 messages, 2 authors, 2015-10-25

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

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2015-10-25 08:26:46
Also in: lkml

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 -1 instead of -ENOMEM is sloppy

Signed-off-by: Luis de Bethencourt <redacted>
---
 drivers/staging/wilc1000/host_interface.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
Doesn't apply against my tree anymore, can you refresh this against the
staging-testing branch of staging.git and resend?

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help