提交 7c5a54fb 编写于 作者: M Marina Makienko 提交者: 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: NMarina Makienko <makienko@ispras.ru>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册