]> err.no Git - linux-2.6/commit
usbfs: don't store bad pointers in registration
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 24 Jun 2008 18:47:29 +0000 (14:47 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Jul 2008 22:16:43 +0000 (15:16 -0700)
commite04199b2167e88f0e2d0410fafaa2c35ff7ba8c1
treed09cdcd85bfa3ead3d63cf6e1c1b6454fc4ee7f0
parentd64aac36394b3c26db53538bfedd8444a3a2206e
usbfs: don't store bad pointers in registration

This patch (as1107) fixes a small bug in the usbfs registration and
unregistration code.  It avoids leaving an error value stored in the
device's usb_classdev field and it avoids trying to unregister a NULL
pointer.  (It also fixes a rather extreme overuse of whitespace.)

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c