usb: Check usb_new_device for failure
This checks that a new USB device is correctly initialized and frees it if not.
In addition, this doesn't report that USB was started when no device was found.
Signed-off-by: NPaul Kocialkowski <contact@paulk.fr>
Showing
想要评论请 注册 或 登录