Jiri Slaby 86fbf1486a [PATCH] Char: correct pci_get_device changes
Commits 881a8c120acf7ec09c90289e2996b7c70f51e996 and
efe1ec27837d6639eae82e1f5876910ba6433c3f corrects pci device matching in
only one way; it no longer oopses/crashes, despite hotplug is not solved
in these changes.

Whenever pci_find_device -> pci_get_device change is performed, also
pci_dev_get and pci_dev_put should be in most cases called to properly
handle hotplug.  This patch does exactly this thing -- increase refcount
to let kernel know, that we are using this piece of HW just now.

It affects moxa and rio char drivers.

Cc: <R.E.Wolff@BitWizard.nl>
Acked-by: Amit Gud <gud@eth.net>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-21 13:35:05 -07:00
..
2006-03-24 07:33:28 -08:00
2006-05-27 02:26:14 -04:00
2006-01-11 18:42:14 -08:00
2006-03-24 07:33:29 -08:00
2006-03-24 07:33:29 -08:00
2006-03-24 07:33:29 -08:00
2006-01-11 18:42:14 -08:00
2006-03-24 07:33:29 -08:00
2006-03-24 07:33:28 -08:00
2006-05-27 02:26:14 -04:00
2006-01-11 18:42:14 -08:00
2006-05-27 02:26:14 -04:00
2006-01-11 18:42:14 -08:00
2006-05-27 02:27:23 -04:00
2006-10-16 08:27:54 -07:00
2006-01-11 18:42:14 -08:00
2006-05-15 11:20:57 -07:00
2006-05-27 02:26:14 -04:00
2006-01-11 18:42:14 -08:00
2006-05-27 02:27:23 -04:00
2006-05-27 02:26:14 -04:00
2006-01-11 18:42:14 -08:00
2006-03-24 07:33:29 -08:00
2006-05-27 02:26:14 -04:00