From: Herbert Xu <herbert@gondor.apana.org.au>
To: Vojtech Pavlik <vojtech@suse.cz>, linux-usb-devel@lists.sourceforge.net
Cc: Marcelo Tosatti <marcelo.tosatti@cyclades.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [HID] Fix hiddev devfs oops
Date: Tue, 5 Oct 2004 22:49:14 +1000 [thread overview]
Message-ID: <20041005124914.GA1009@gondor.apana.org.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 674 bytes --]
Hi:
There is a long-standing devfs_unregister oops in hid/hiddev. It's
caused by hid calling hiddev_exit before unregistering itself which
in turn calls hiddev_disconnect.
hiddev_exit removes the directory which contains the hiddev devices.
Therefore it needs to be called after the hiddev devices have been
disconnected.
This patch fixes that.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Marcelo, the same fix is needed in 2.4 as well.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
[-- Attachment #2: p-2.6 --]
[-- Type: text/plain, Size: 344 bytes --]
===== drivers/usb/input/hid-core.c 1.94 vs edited =====
--- 1.94/drivers/usb/input/hid-core.c 2004-08-25 22:01:29 +10:00
+++ edited/drivers/usb/input/hid-core.c 2004-10-05 22:44:03 +10:00
@@ -1859,8 +1859,8 @@
static void __exit hid_exit(void)
{
- hiddev_exit();
usb_deregister(&hid_driver);
+ hiddev_exit();
}
module_init(hid_init);
[-- Attachment #3: p-2.4 --]
[-- Type: text/plain, Size: 326 bytes --]
===== drivers/usb/hid-core.c 1.30 vs edited =====
--- 1.30/drivers/usb/hid-core.c 2004-08-08 18:59:53 +10:00
+++ edited/drivers/usb/hid-core.c 2004-10-05 22:33:52 +10:00
@@ -1459,8 +1459,8 @@
static void __exit hid_exit(void)
{
- hiddev_exit();
usb_deregister(&hid_driver);
+ hiddev_exit();
}
module_init(hid_init);
next reply other threads:[~2004-10-05 12:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-05 12:49 Herbert Xu [this message]
2004-10-11 17:21 ` [HID] Fix hiddev devfs oops Marcelo Tosatti
2004-10-12 21:21 ` Herbert Xu
2004-10-12 22:23 ` [linux-usb-devel] " Pete Zaitcev
2004-10-12 23:14 ` Herbert Xu
2004-10-13 0:51 ` Adam Kropelin
2004-10-13 2:20 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041005124914.GA1009@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=marcelo.tosatti@cyclades.com \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).