macsec: add missing NULL check after kmalloc
authorSabrina Dubroca <sd@queasysnail.net>
Fri, 22 Apr 2016 09:28:01 +0000 (11:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Apr 2016 18:31:58 +0000 (14:31 -0400)
commit72f2a05b8f367ee0d75584a6fbec7dbe7c144f27
tree4c3683dfc8f7366f92e34a051737b9ba0f1bea94
parent3d05a06d313d602f7cd589d5d8d45bd04902adcb
macsec: add missing NULL check after kmalloc

Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c