[PATCH] USB: usbcore: usb_set_configuration oops (NULL ptr dereference)
authorHorst Schirmeier <horst@schirmeier.com>
Thu, 9 Mar 2006 13:10:49 +0000 (14:10 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 22:50:01 +0000 (14:50 -0800)
commitf48219db93eaee644e9fd9f22fb6421f38059cc5
treedf29efdc95c79a57ff31b7d768c739da0e8ba6bc
parent6aa35675bbc370e5f11baae7e01a9ab255d8030c
[PATCH] USB: usbcore: usb_set_configuration oops (NULL ptr dereference)

When trying to deconfigure a device via usb_set_configuration(dev, 0),
2.6.16-rc kernels after 55c527187c9d78f840b284d596a0b298bc1493af oops
with "Unable to handle NULL pointer dereference at...". This is due to
an unchecked dereference of cp in the power budget part.

Signed-off-by: Horst Schirmeier <horst@schirmeier.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/message.c