projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2510505
)
ah4: Fix error return in ah_input().
author
David S. Miller
<davem@davemloft.net>
Tue, 25 Aug 2015 20:38:50 +0000
(13:38 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 25 Aug 2015 20:38:50 +0000
(13:38 -0700)
Noticed by Herbert Xu.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ah4.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ah4.c
b/net/ipv4/ah4.c
index ac9a32ec3ee465a3ad59798dae19d3a307e77cd4..f2a71025a7705d5c7b10dc108440ee2ea5cd03aa 100644
(file)
--- a/
net/ipv4/ah4.c
+++ b/
net/ipv4/ah4.c
@@
-360,8
+360,10
@@
static int ah_input(struct xfrm_state *x, struct sk_buff *skb)
work_iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl +
ahp->icv_trunc_len + seqhi_len);
- if (!work_iph)
+ if (!work_iph) {
+ err = -ENOMEM;
goto out;
+ }
seqhi = (__be32 *)((char *)work_iph + ihl);
auth_data = ah_tmp_auth(seqhi, seqhi_len);