diff options
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/appledisplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/appledisplay.c b/drivers/usb/misc/appledisplay.c index a076c24a312a..71d672ea1229 100644 --- a/drivers/usb/misc/appledisplay.c +++ b/drivers/usb/misc/appledisplay.c | |||
@@ -314,7 +314,7 @@ error: | |||
314 | pdata->urbdata, pdata->urb->transfer_dma); | 314 | pdata->urbdata, pdata->urb->transfer_dma); |
315 | usb_free_urb(pdata->urb); | 315 | usb_free_urb(pdata->urb); |
316 | } | 316 | } |
317 | if (pdata->bd) | 317 | if (pdata->bd && !IS_ERR(pdata->bd)) |
318 | backlight_device_unregister(pdata->bd); | 318 | backlight_device_unregister(pdata->bd); |
319 | kfree(pdata->msgdata); | 319 | kfree(pdata->msgdata); |
320 | } | 320 | } |