Skip to content
Commit e2c34045 authored by Rahul Ruikar's avatar Rahul Ruikar Committed by Felipe Balbi
Browse files

usb: musb: musb_gadget: fix resource leakage in error path



In function musb_gadget_setup() call put_device()
when device_register() fails.

Signed-off-by: default avatarRahul Ruikar <rahul.ruikar@gmail.com>
Acked-by: default avatarMing Lei <tom.leiming@gmail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 9001d80d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment