HID: hidraw_connect() memleak fix
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Thu, 27 Sep 2007 09:24:55 +0000 (11:24 +0200)
committerJiri Kosina <jkosina@suse.cz>
Sun, 14 Oct 2007 12:47:26 +0000 (14:47 +0200)
commit709d27c04f4eccbc99d57a5569bce028915a4345
treed7d95f51bb618f2e8559a83ea0418b7d8476e79b
parent86166b7bcda0bcb53525114fa1c87ac432be478e
HID: hidraw_connect() memleak fix

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 <m.kozlowski@tuxland.pl>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c