git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39e88fc
)
nfs: fix null checking in nfs_get_option_str()
author
Xi Wang
<xi.wang@gmail.com>
Fri, 4 Jan 2013 08:22:57 +0000
(
03:22
-0500)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 4 Jan 2013 15:54:43 +0000
(10:54 -0500)
The following null pointer check is broken.
*option = match_strdup(args);
return !option;
The pointer `option' must be non-null, and thus `!option' is always false.
Use `!*option' instead.
The bug was introduced in commit
c5cb09b6f8
("Cleanup: Factor out some
cut-and-paste code.").
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c
patch
|
blob
|
history
diff --cc
fs/nfs/super.c
Simple merge