macsec: fix error codes when a SA is created
authorDavide Caratti <dcaratti@redhat.com>
Fri, 22 Jul 2016 13:07:57 +0000 (15:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2016 17:55:39 +0000 (10:55 -0700)
commit34aedfee22967236adc3d9147c8b47b7f5bad26c
tree803b910b1bc2476176754ed51a5b1ff48be7576e
parent2ccbe2cb79f2f74ab739252299b6f9ff27586f2c
macsec: fix error codes when a SA is created

preserve the return value of AEAD functions that are called when a SA is
created, to avoid inappropriate display of "RTNETLINK answers: Cannot
allocate memory" message.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c