Re: [PATCH Resend] HID: Fix return values in hid-core.c

2012-09-17 Thread Jiri Kosina
On Mon, 17 Sep 2012, Sachin Kamat wrote: > Return -ENOMEM instead of -1 if memory allocation fails. > Return -EINVAL instead of -1 for stack overflow and > underflow errors. > > Signed-off-by: Sachin Kamat > --- > drivers/hid/hid-core.c |6 +++--- > 1 files changed, 3 insertions(+), 3 delet

[PATCH Resend] HID: Fix return values in hid-core.c

2012-09-17 Thread Sachin Kamat
Return -ENOMEM instead of -1 if memory allocation fails. Return -EINVAL instead of -1 for stack overflow and underflow errors. Signed-off-by: Sachin Kamat --- drivers/hid/hid-core.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-core.c b/drivers/hid