Thread (3 messages) 3 messages, 3 authors, 2017-08-23

Re: [PATCH][netdev-next] gre: remove duplicated assignment of iph

flat view

From: David Miller <davem@davemloft.net>
Date: 2017-08-23 18:46:14
Also in: kernel-janitors, lkml

From: Colin King <redacted>
Date: Wed, 23 Aug 2017 12:13:05 +0100
From: Colin Ian King <redacted>

iph is being assigned the same value twice; remove the redundant
second assignment.

Fixes warning:
net/ipv4/ip_gre.c:265:2: warning: Value stored to 'iph' is never read

Signed-off-by: Colin Ian King <redacted>
It is always necessary to reload any SKB header pointer after calls
to functions which potentially change the data buffer of the SKB.

pskb_may_pull() is one such call.

Therefore your patch is adding a bug.

If you want to remove the dup, you must remove the first not
the second one.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help