summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2013-06-06 01:27:15 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-06 12:14:38 -0700
commitde5535f5f508466cd5796d4e14ad4f301ff86a26 (patch)
tree272120b09c8dd6983eb1f58d9406f91bfaa645a9 /drivers/usb
parent7d9852a88cb76b102b60b31949d5777e645f1421 (diff)
downloadtalos-obmc-linux-de5535f5f508466cd5796d4e14ad4f301ff86a26.tar.gz
talos-obmc-linux-de5535f5f508466cd5796d4e14ad4f301ff86a26.zip
USB: fix PTR_ERR translation in init_usb_class()
There is a misprint in init_usb_class(): IS_ERR is used to get error code instead of PTR_ERR. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c
index e5387a47ef6f..6a4c40766f0f 100644
--- a/drivers/usb/core/file.c
+++ b/drivers/usb/core/file.c
@@ -94,7 +94,7 @@ static int init_usb_class(void)
kref_init(&usb_class->kref);
usb_class->class = class_create(THIS_MODULE, "usbmisc");
if (IS_ERR(usb_class->class)) {
- result = IS_ERR(usb_class->class);
+ result = PTR_ERR(usb_class->class);
printk(KERN_ERR "class_create failed for usb devices\n");
kfree(usb_class);
usb_class = NULL;
OpenPOWER on IntegriCloud