usb devio: handle class_device_create() error
commit27d39e2627dc7493f554bc0549d8c63953762478
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 9 Oct 2006 09:09:33 +0000 (9 18:09 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Oct 2006 21:46:32 +0000 (17 14:46 -0700)
tree17aa7627b203a897657472abaf3559a73ed4fa9d
parentf8ac232ad7388bfff680b26e84b3ac63889d1cea
usb devio: handle class_device_create() error

This patch adds missing class_device_create() error check,
and makes notifier return NOTIFY_BAD.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c