commit | 52d178516dcf61e7a59363a572458c830af6e520 | [log] [tgz] |
---|---|---|
author | stephen hemminger <shemming@brocade.com> | Tue Nov 17 14:26:06 2015 -0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Nov 18 14:58:03 2015 -0500 |
tree | 2b23b754f77f5aec29282d380f94f2a8f62958dc | |
parent | 6f97532ef05e49f1998a09f8359b83d00a7b3229 [diff] |
hdlc: fix null-deref on allocation failure 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 <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>