lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 30 Jan 2011 13:38:30 +0100 From: Stefan Achatz <erazor_de@...rs.sourceforge.net> To: Randy Dunlap <rdunlap@...otime.net>, Jiri Kosina <jkosina@...e.cz>, Mauro Carvalho Chehab <mchehab@...hat.com>, Stefan Achatz <erazor_de@...rs.sourceforge.net>, Andrew Morton <akpm@...ux-foundation.org>, Thomas Weber <weber@...science.de>, Greg Kroah-Hartman <gregkh@...e.de>, linux-doc@...r.kernel.org, Hans Verkuil <hverkuil@...all.nl>, linux-input@...r.kernel.org, linux-kernel@...r.kernel.org Subject: [PATCH 8/8] HID: roccat: Fixed bug that prevented roccat chardev from removing devices pointer to device was cleared too early. This is fixed now. Signed-off-by: Stefan Achatz <erazor_de@...rs.sourceforge.net> --- drivers/hid/hid-roccat.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/hid/hid-roccat.c b/drivers/hid/hid-roccat.c index 0fa23de..bbe294c 100644 --- a/drivers/hid/hid-roccat.c +++ b/drivers/hid/hid-roccat.c @@ -356,13 +356,16 @@ void roccat_disconnect(int minor) mutex_lock(&devices_lock); device = devices[minor]; - devices[minor] = NULL; mutex_unlock(&devices_lock); device->exist = 0; /* TODO exist maybe not needed */ device_destroy(device->dev->class, MKDEV(roccat_major, minor)); + mutex_lock(&devices_lock); + devices[minor] = NULL; + mutex_unlock(&devices_lock); + if (device->open) { hid_hw_close(device->hid); wake_up_interruptible(&device->wait); -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists