Commit 7c5a54fb authored by Marina Makienko's avatar Marina Makienko Committed by Samuel Ortiz

NFC: pn533: Add missing usb_put_dev

Add missing usb_put_dev on failure path in pn533_probe().

Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: default avatarMarina Makienko <makienko@ispras.ru>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 6d2cd978
......@@ -2779,6 +2779,7 @@ static int pn533_probe(struct usb_interface *interface,
error:
usb_free_urb(dev->in_urb);
usb_free_urb(dev->out_urb);
usb_put_dev(dev->udev);
kfree(dev);
return rc;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment