Re: [PATCH] hid: hidraw_connect memleak fix

2007-09-27 Thread Jiri Kosina
On Thu, 27 Sep 2007, Mariusz Kozlowski wrote: > It looks like hidraw_connect() is leaking memory in case of failure. > Also it should return -ENOMEM when kzalloc fails. Mariusz, good catch, will apply to me tree. Thanks, -- Jiri Kosina SUSE Labs - To unsubscribe from this list: send the line

[PATCH] hid: hidraw_connect memleak fix

2007-09-27 Thread Mariusz Kozlowski
It looks like hidraw_connect() is leaking memory in case of failure. Also it should return -ENOMEM when kzalloc fails. Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]> drivers/hid/hidraw.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) --- linux-2.6.23-rc8-mm1-a/dri