diff options
author | Arnd Bergmann <[email protected]> | 2017-08-18 13:34:22 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-08-18 10:47:21 -0700 |
commit | 401481e06099533892b3d8f1db498cbc480b5b24 (patch) | |
tree | 026665da2ff6c6cc37229fd73418a7735c8e6a11 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 66ff5fa08b16155707eb121af0a8169345b6e747 (diff) |
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: 121622dba8da ("ipv6: route: make rtm_getroute not assume rtnl is locked")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions