Skip to content
Snippets Groups Projects
Commit 8f0923c1 authored by Devendra Naga's avatar Devendra Naga Committed by David S. Miller
Browse files

cdc_ncm: return -ENOMEM if kzalloc fails


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: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 537aadc3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment