Thread (1 message) 1 message, 1 author, 2015-09-21

Re: [PATCH] [net] Fix error handling in ezusb_probe()

From: Kalle Valo <hidden>
Date: 2015-09-21 10:24:10
Also in: lkml, netdev

RUC_Soft_Sec [off-list ref] writes:
Current code assigns 0 to variable 'retval', which makes ezusb_probe()
to return success even if alloc_orinocodev() fails.

Fix it by checking the return value from alloc_orinocodev() and
assigns '-ENOMEM' to variable 'retval' in the case of error.


Signed-off-by: RUC_Soft_Sec <redacted>
Please use your real name both in From header and in Signed-off-by line.
Also use "orinoco_usb:" as the prefix in the commit title.
---
 orinoco_usb.c |    1 +
 1 file changed, 1 insertion(+)
This is wrong, the patch should contain the full source path.


-- 
Kalle Valo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help