diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-11-10 16:44:45 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-11-11 16:45:08 (GMT) |
commit | e84efa32b9d2763fb92e73c8942100d8f55ad4ed (patch) | |
tree | 2a401d9abe634b6931e2903ad694a9f20131adde /arch/x86 | |
parent | a76bcf557ef408b368cf26f52a60865bfc27b632 (diff) | |
download | linux-e84efa32b9d2763fb92e73c8942100d8f55ad4ed.tar.xz |
NFSv4.1: work around -Wmaybe-uninitialized warning
A bugfix introduced a harmless gcc warning in nfs4_slot_seqid_in_use if
we enable -Wmaybe-uninitialized again:
fs/nfs/nfs4session.c:203:54: error: 'cur_seq' may be used uninitialized in this function [-Werror=maybe-uninitialized]
gcc is not smart enough to conclude that the IS_ERR/PTR_ERR pair results
in a nonzero return value here. Using PTR_ERR_OR_ZERO() instead makes
this clear to the compiler.
Fixes: e09c978aae5b ("NFSv4.1: Fix Oopsable condition in server callback races")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions