projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
741b225
)
[IPV6]: Fix memory management error during setting up new advapi sockopts.
author
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Sun, 20 Nov 2005 03:18:17 +0000
(12:18 +0900)
committer
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Sun, 20 Nov 2005 03:18:17 +0000
(12:18 +0900)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv6/exthdrs.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/exthdrs.c
b/net/ipv6/exthdrs.c
index 922549581abc266100d6a3a28676665dd509f858..748577b76d75a93b1f105a70faeaedffdc8a3f01 100644
(file)
--- a/
net/ipv6/exthdrs.c
+++ b/
net/ipv6/exthdrs.c
@@
-628,6
+628,7
@@
ipv6_renew_options(struct sock *sk, struct ipv6_txoptions *opt,
if (!tot_len)
return NULL;
+ tot_len += sizeof(*opt2);
opt2 = sock_kmalloc(sk, tot_len, GFP_ATOMIC);
if (!opt2)
return ERR_PTR(-ENOBUFS);
@@
-668,7
+669,7
@@
ipv6_renew_options(struct sock *sk, struct ipv6_txoptions *opt,
return opt2;
out:
- sock_kfree_s(sk,
p,
tot_len);
+ sock_kfree_s(sk,
opt2, opt2->
tot_len);
return ERR_PTR(err);
}