xen-netback: fix some error return code
authorWei Yongjun <weiyj.lk@gmail.com>
Tue, 17 Dec 2013 02:42:09 +0000 (10:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Dec 2013 19:58:47 +0000 (14:58 -0500)
'err' is overwrited to 0 after maybe_pull_tail() call, so the error
code was not set if skb_partial_csum_set() call failed. Fix to return
error -EPROTO from those error handling case instead of 0.

Fixes: d52eb0d46f36 ('xen-netback: make sure skb linear area covers checksum field')
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c

Simple merge