Re: [PATCH] hdlc: fix null-deref on allocation failure

2015-11-18 Thread David Miller
From: Stephen Hemminger Date: Tue, 17 Nov 2015 14:26:06 -0800 > If alloc_netdev() failed and return NULL, then the next instruction > would dereference it. Found by Coverity. > > Compile tested only. Not sure if anyone still uses this driver > (or the whole WAN subsystem). > > Signed-off-by: St

[PATCH] hdlc: fix null-deref on allocation failure

2015-11-17 Thread Stephen Hemminger
If alloc_netdev() failed and return NULL, then the next instruction would dereference it. Found by Coverity. Compile tested only. Not sure if anyone still uses this driver (or the whole WAN subsystem). Signed-off-by: Stephen Hemminger --- a/drivers/net/wan/hdlc_fr.c 2015-08-18 17:45:21.41452530