commit | 05006e8c59050b2bab1bfe9cac631505d21122a3 | [log] [tgz] |
---|---|---|
author | Fabian Frederick <fabf@skynet.be> | Tue Nov 04 22:54:36 2014 +0100 |
committer | David S. Miller <davem@davemloft.net> | Tue Nov 04 16:57:49 2014 -0500 |
tree | 89ad36d2aa6c7aac48908b7124fd789db0d2325f | |
parent | 90284c2bc98502362c217c01a2d71dcbb1968abe [diff] [blame] |
esp4: remove assignment in if condition Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index 360b565..d2bf02e 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c
@@ -392,8 +392,10 @@ if (elen <= 0) goto out; - if ((err = skb_cow_data(skb, 0, &trailer)) < 0) + err = skb_cow_data(skb, 0, &trailer); + if (err < 0) goto out; + nfrags = err; assoclen = sizeof(*esph);