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)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 13 May 2013 14:02:37 +0000 (15:02 +0100)
commit3932af2c9a664a2550debd923b3c6d050aed1bc4
treeda974affe37bdea1264b1f3f1634be2c0d8d69b5
parent0df4e84995c7f69103a3553d1a3dcb5da4caab79
esp4: fix error return code in esp_output()

[ Upstream commit 06848c10f720cbc20e3b784c0df24930b7304b93 ]

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv4/esp4.c