cdc_ncm: return -ENOMEM if kzalloc fails
authorDevendra Naga <devendra.aaru@gmail.com>
Fri, 29 Mar 2013 23:03:22 +0000 (23:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Mar 2013 21:31:24 +0000 (17:31 -0400)
return -ENOMEM instead if kzalloc of cdc_ncm_ctx structure is failed.

and also remove the comparision of ctx structure with NULL and make
it as !ctx.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found