Thread (1 message) 1 message, 1 author, 2014-09-01

Re: [PATCH 2/2] nl80211.c: Fixed the wdev_id being used uninitialized.

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2014-09-01 12:42:29
Also in: lkml, netdev

On Mon, 2014-09-01 at 08:33 -0400, Shakil A Khan wrote:
On Monday 01 September 2014 08:07:38 Johannes Berg wrote:
quoted
quoted
+	u64 wdev_id = 0;
it's not used uninitialized, NACK.

johannes
wdev_id can be used uninitialized if  have_wdev_id turns to be false,
which may happen if the entry for NL80211_ATTR_WDEV is removed in
future. Who knows.
In which case the compiler will warn about it. If you were to use a
newer compiler now, you wouldn't see the warning.

johannes

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help