diff options
author | Jiri Kosina <jkosina@suse.cz> | 2011-05-24 11:43:18 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-05-24 11:43:18 +0200 |
commit | 7f77897ef2b6a5ee4eb8bc24fe8b1f3eab254328 (patch) | |
tree | 024098e2025c2fbbd3b0a2edf70711ffef76f9b8 /net/ipv4/inet_lro.c | |
parent | d762f4383100c2a87b1a3f2d678cd3b5425655b4 (diff) | |
download | kernel_samsung_smdk4412-7f77897ef2b6a5ee4eb8bc24fe8b1f3eab254328.zip kernel_samsung_smdk4412-7f77897ef2b6a5ee4eb8bc24fe8b1f3eab254328.tar.gz kernel_samsung_smdk4412-7f77897ef2b6a5ee4eb8bc24fe8b1f3eab254328.tar.bz2 |
HID: hiddev: fix potential use-after-free
Commit 6cb4b040795 ("HID: hiddev: fix race between hiddev_disconnect
and hiddev_release") made it possible to access hiddev (for unlocking
the existance mutex) once hiddev has been kfreed.
Change the order so that this can not happen (always unlock the mutex first,
it is needed only to protect access to ->exist and ->open).
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net/ipv4/inet_lro.c')
0 files changed, 0 insertions, 0 deletions