esp4: fix error return code in esp_output()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 13 Apr 2013 15:49:03 +0000 (15:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Apr 2013 18:05:34 +0000 (14:05 -0400)
commit06848c10f720cbc20e3b784c0df24930b7304b93
tree34e479b53aaedb4644cad7c7e6ed28e4b7ddf6ba
parent8f3359bdc83f1abb1989e0817ab0e0b18667c828
esp4: fix error return code in esp_output()

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/esp4.c