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:
1d97437
)
ipv6: Remove superfluous NULL pointer check in ipv6_local_rxpmtu
author
Steffen Klassert
<steffen.klassert@secunet.com>
Tue, 11 Oct 2011 02:01:02 +0000
(
02:01
+0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 19 Oct 2011 03:51:30 +0000
(23:51 -0400)
The pointer to mtu_info is taken from the common buffer
of the skb, thus it can't be a NULL pointer. This patch
removes this check on mtu_info.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/datagram.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/datagram.c
b/net/ipv6/datagram.c
index b46e9f88ce370fecdb84a84d570f43771bf4896c..e2480691c220a16f93f602ce19266ffb2e7f017f 100644
(file)
--- a/
net/ipv6/datagram.c
+++ b/
net/ipv6/datagram.c
@@
-297,10
+297,6
@@
void ipv6_local_rxpmtu(struct sock *sk, struct flowi6 *fl6, u32 mtu)
ipv6_addr_copy(&iph->daddr, &fl6->daddr);
mtu_info = IP6CBMTU(skb);
- if (!mtu_info) {
- kfree_skb(skb);
- return;
- }
mtu_info->ip6m_mtu = mtu;
mtu_info->ip6m_addr.sin6_family = AF_INET6;