summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/adutux.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-11-26 15:06:49 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-27 04:50:15 +0100
commitfc625960edecfb57e62c2975d1f155155e28e6ba (patch)
tree024d1d6ceabafec699b5328d4791ea08f54248fc /drivers/usb/misc/adutux.c
parentusb: chipidea: fix platform_no_drv_owner.cocci warnings (diff)
downloadlinux-fc625960edecfb57e62c2975d1f155155e28e6ba.tar.xz
linux-fc625960edecfb57e62c2975d1f155155e28e6ba.zip
USB: adutux: NULL dereferences on disconnect
Both "dev->udev" and "interface->dev" are NULL. These printks are not very interesting so I just deleted them. Fixes: 03270634e242 ('USB: Add ADU support for Ontrak ADU devices') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/adutux.c')
-rw-r--r--drivers/usb/misc/adutux.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c
index 493c7f268b6f..3071c0ef909b 100644
--- a/drivers/usb/misc/adutux.c
+++ b/drivers/usb/misc/adutux.c
@@ -814,15 +814,10 @@ static void adu_disconnect(struct usb_interface *interface)
usb_set_intfdata(interface, NULL);
/* if the device is not opened, then we clean up right now */
- dev_dbg(&dev->udev->dev, "%s : open count %d\n",
- __func__, dev->open_count);
if (!dev->open_count)
adu_delete(dev);
mutex_unlock(&adutux_mutex);
-
- dev_info(&interface->dev, "ADU device adutux%d now disconnected\n",
- (minor - ADU_MINOR_BASE));
}
/* usb specific object needed to register this driver with the usb subsystem */