HID: fix reference count leak hidraw
authorOliver Neukum <oliver@neukum.org>
Mon, 15 Dec 2008 12:12:08 +0000 (13:12 +0100)
committerJiri Kosina <jkosina@suse.cz>
Sun, 4 Jan 2009 00:01:43 +0000 (01:01 +0100)
commitb8a832b1c0a70531b4bd69a67aa0bf72f6f2dc34
tree61ff346a6b1381d7d2e1cba33902fe3f5fe1c91c
parent25e61613cf3ca7f6d5f89a707b20c9eed6b74455
HID: fix reference count leak hidraw

The hidraw subsystem has a bug that prevents the close syscall from ever
reaching the low level driver, leading to a resource leak. Fix by replacing
postdecrement with predecrement.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c