Files
linux/fs
Xi Wang 31c4e8cd42 nfs: fix null checking in nfs_get_option_str()
commit e25fbe380c upstream.

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>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-11 09:03:38 -08:00
..
2011-05-19 16:55:28 +09:30
2011-07-17 23:20:29 -04:00
2012-09-14 10:00:50 -07:00
2011-11-11 09:35:59 -08:00
2011-06-20 17:53:24 -05:00
2012-11-26 11:34:33 -08:00
2011-07-17 23:21:35 -04:00
2012-11-17 13:14:25 -08:00
2011-07-06 12:15:16 -07:00
2012-09-14 10:00:37 -07:00
2012-04-27 09:51:09 -07:00
2011-05-26 10:01:43 -06:00