diff options
| author | Johannes Weiner <[email protected]> | 2009-03-10 21:43:56 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2009-03-10 21:43:56 +0000 |
| commit | 48e7a3c95c9f98c2cb6f894820e3cc2d0448e92f (patch) | |
| tree | 641418256b1b64e3408c6327d48c11cbe57b20b6 /net/unix/af_unix.c | |
| parent | Linux 2.6.29-rc5 (diff) | |
| download | kernel-48e7a3c95c9f98c2cb6f894820e3cc2d0448e92f.tar.gz kernel-48e7a3c95c9f98c2cb6f894820e3cc2d0448e92f.zip | |
HID: fix incorrect free in hiddev
If hiddev_open() fails, it wrongly frees the shared hiddev structure
kept in hiddev_table instead of the hiddev_list structure allocated
for the opened file descriptor. Existing references to this structure
will then accessed free memory.
This was introduced by 079034073 "HID: hiddev cleanup -- handle all
error conditions properly".
Signed-off-by: Johannes Weiner <[email protected]>
Cc: Oliver Neukum <[email protected]>
Cc: Jiri Kosina <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
