diff options
author | Michal Malý <madcatxster@gmail.com> | 2012-03-31 05:35:05 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-04-02 22:11:12 -0400 |
commit | 6a2e176b2d6ae6bb528c0c1a50a6332e176cda12 (patch) | |
tree | 14799f485bbbf3bc0e32f744b430d0ebb2421088 /drivers/hid/hid-lg.h | |
parent | 8577dbf9d6eb07213caefb49e2017c177c5f023d (diff) |
HID: lg4ff: Remove sysfs iface before deallocating memory
This patch fixes a possible race condition caused by the sysfs
interface being removed after the memory used by the interface
was already kfree'd.
Signed-off-by: Michal Malý <madcatsxter@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lg.h')
-rw-r--r-- | drivers/hid/hid-lg.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hid/hid-lg.h b/drivers/hid/hid-lg.h index 500457b67b21..d64cf8d2751e 100644 --- a/drivers/hid/hid-lg.h +++ b/drivers/hid/hid-lg.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef __HID_LG_H | 1 | #ifndef __HID_LG_H |
2 | #define __HID_LG_H | 2 | #define __HID_LG_H |
3 | 3 | ||
4 | #include <linux/spinlock.h> | ||
5 | |||
6 | struct lg_drv_data { | 4 | struct lg_drv_data { |
7 | unsigned long quirks; | 5 | unsigned long quirks; |
8 | void *device_props; /* Device specific properties */ | 6 | void *device_props; /* Device specific properties */ |