Arnd Bergmann
401481e060
ipv6: fix false-postive maybe-uninitialized warning
...
Adding a lock around one of the assignments prevents gcc from
tracking the state of the local 'fibmatch' variable, so it can no
longer prove that 'dst' is always initialized, leading to a bogus
warning:
net/ipv6/route.c: In function 'inet6_rtm_getroute':
net/ipv6/route.c:3659:2: error: 'dst' may be used uninitialized in this function [-Werror=maybe-uninitialized]
This moves the other assignment into the same lock to shut up the
warning.
Fixes: 121622dba8 ("ipv6: route: make rtm_getroute not assume rtnl is locked")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-08-18 10:47:21 -07:00
..
2017-06-15 11:59:32 -04:00
2017-06-30 06:27:09 -07:00
2017-06-09 12:26:07 -04:00
2017-08-09 16:57:38 -07:00
2017-08-09 16:57:38 -07:00
2017-08-16 11:27:52 -07:00
2017-06-23 14:17:31 -04:00
2017-07-04 01:29:04 -07:00
2017-07-04 22:35:16 +01:00
2017-07-01 07:39:08 -07:00
2017-06-22 10:49:14 +02:00
2017-07-01 07:39:08 -07:00
2016-06-27 15:06:15 -04:00
2015-09-02 15:31:00 -07:00
2017-08-07 14:16:21 -07:00
2017-08-03 15:36:00 -07:00
2017-08-08 21:40:08 -07:00
2017-05-21 13:42:36 -04:00
2017-06-14 15:33:58 -04:00
2017-01-28 10:33:06 -05:00
2017-08-07 11:39:22 -07:00
2016-06-14 15:26:42 -04:00
2017-08-09 16:57:38 -07:00
2016-12-24 11:46:01 -08:00
2017-08-01 10:03:17 -07:00
2016-06-18 22:11:38 -07:00
2017-04-20 10:35:33 -04:00
2017-06-04 21:41:10 -04:00
2016-04-07 16:53:29 -04:00
2017-08-10 09:52:12 -07:00
2017-06-26 23:13:22 -04:00
2016-11-02 15:18:36 -04:00
2017-07-18 11:13:41 -07:00
2017-08-09 16:57:38 -07:00
2016-11-04 14:45:23 -04:00
2017-07-05 16:05:24 -07:00
2017-08-07 14:16:22 -07:00
2017-08-07 14:16:22 -07:00
2015-08-13 17:08:39 -07:00
2017-07-04 01:29:04 -07:00
2016-12-25 17:21:23 +01:00
2017-08-09 22:40:04 -07:00
2016-11-04 14:45:23 -04:00
2017-07-19 22:50:14 -07:00
2017-06-04 22:56:55 -04:00
2017-06-12 09:53:14 -04:00
2017-03-24 13:17:07 -07:00
2017-08-07 11:39:22 -07:00
2016-11-03 15:41:11 -04:00
2017-08-18 10:47:21 -07:00
2017-02-07 16:29:30 -05:00
2017-08-07 14:16:21 -07:00
2017-08-07 14:16:22 -07:00
2017-08-07 14:16:22 -07:00
2017-06-30 12:43:08 -04:00
2017-07-18 11:22:51 -07:00
2016-06-27 15:06:17 -04:00
2017-08-15 20:23:23 -07:00
2015-02-28 16:56:51 -05:00
2015-11-03 10:52:13 -05:00
2017-05-18 10:23:33 -04:00
2017-08-08 21:39:01 -07:00
2017-08-07 11:39:22 -07:00
2016-11-24 15:32:14 -05:00
2017-06-22 10:49:14 +02:00
2017-06-16 11:48:39 -04:00
2017-06-02 13:57:27 -04:00
2017-06-02 13:57:27 -04:00
2017-04-14 10:07:39 +02:00
2017-04-14 10:06:10 +02:00
2017-07-18 11:13:41 -07:00
2017-02-09 10:22:17 +01:00
2014-08-24 22:37:52 -07:00
2017-07-04 01:29:04 -07:00