irda-usb: add error handling and fix leak
authorDan Carpenter <error27@gmail.com>
Sun, 7 Mar 2010 02:35:42 +0000 (02:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Mar 2010 23:25:51 +0000 (15:25 -0800)
If the call to kcalloc() fails then we should return -ENOMEM.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found