irda-usb: add error handling and fix leak
If the call to kcalloc() fails then we should return -ENOMEM. Signed-off-by: NDan Carpenter <error27@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录
If the call to kcalloc() fails then we should return -ENOMEM. Signed-off-by: NDan Carpenter <error27@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>