aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJohannes Weiner <[email protected]>2009-03-10 21:43:56 +0000
committerJiri Kosina <[email protected]>2009-03-10 21:43:56 +0000
commit48e7a3c95c9f98c2cb6f894820e3cc2d0448e92f (patch)
tree641418256b1b64e3408c6327d48c11cbe57b20b6 /net/unix/af_unix.c
parentLinux 2.6.29-rc5 (diff)
downloadkernel-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