netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Compiler warning
@ 2019-02-04 11:43 Koen Vandeputte
  2019-02-05  2:55 ` David Ahern
  0 siblings, 1 reply; 3+ messages in thread
From: Koen Vandeputte @ 2019-02-04 11:43 UTC (permalink / raw)
  To: netdev

Hi All,

I'm seeing following compiler warning during kernel compilation 
(5.0-rc5  and  4.14.96):


net/core/dev.c: In function 'validate_xmit_skb_list':
net/core/dev.c:3405:15: warning: 'tail' may be used uninitialized in 
this function [-Wmaybe-uninitialized]
     tail->next = skb;
     ~~~~~~~~~~~^~~~~


Source shows this:

https://elixir.bootlin.com/linux/v5.0-rc5/source/net/core/dev.c#L3387

Looks like "tail" can get deferenced while it indeed doesn't get 
initialized? Kind regards, Koen


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-07 13:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-04 11:43 Compiler warning Koen Vandeputte
2019-02-05  2:55 ` David Ahern
2019-02-07 13:55   ` Koen Vandeputte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).