]> git.baikalelectronics.ru Git - kernel.git/commit
esp: Fix error handling on layer 2 xmit.
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 7 Aug 2017 06:31:07 +0000 (08:31 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 7 Aug 2017 06:31:07 +0000 (08:31 +0200)
commit71246de63cf3c32183ccc9432cac12720670ad70
treeeafc8bc7473371efb0c0832f415e16ced5af068a
parentaea23277e1207deb7c7aa3614bc2ede36a5dba14
esp: Fix error handling on layer 2 xmit.

esp_output_tail() and esp6_output_tail() can return negative
and positive error values. We currently treat only negative
values as errors, fix this to treat both cases as error.

Fixes: d338eb9168cc ("esp4: Reorganize esp_output")
Fixes: e96c7930b87e ("esp6: Reorganize esp_output")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4_offload.c
net/ipv6/esp6_offload.c