]> git.hungrycats.org Git - linux/commit
[PATCH] USB: Fix oops in usblp driver
authorVojtech Pavlik <vojtech@suse.cz>
Tue, 12 Oct 2004 08:02:03 +0000 (01:02 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 12 Oct 2004 08:02:03 +0000 (01:02 -0700)
commitb41cb145b269b46235357728b87d0a4fb4df8874
tree6a356bfcdc49bc702d25e96ae466032a413e1d92
parent1ea81ccbb680dbdaa742dcdb333bd249cfac24cc
[PATCH] USB: Fix oops in usblp driver

This bug was reported back in July, and I sent out a patch but apparently
it never got to you.  The usblp driver was calling usb_buffer_free() from
usblp_cleanup(), which runs after disconnect() if a user process holds the
device open.  But once the usb_device is gone usb_buffer_free() will
oops.  The patch frees the buffers in usb_disconnect() instead.

Recently Joost Witteveen reported the same oops and found that the
patch solved it for him.  So there shouldn't be problems with accepting
it.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/class/usblp.c