Re: [PATCH] nfs: fix null checking in nfs_get_option_str()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2013-01-04 at 03:22 -0500, Xi Wang wrote:
+AD4- The following null pointer check is broken.
+AD4- 
+AD4- 	+ACo-option +AD0- match+AF8-strdup(args)+ADs-
+AD4- 	return +ACE-option+ADs-
+AD4- 
+AD4- The pointer +AGA-option' must be non-null, and thus +AGAAIQ-option' is always false.
+AD4- Use +AGAAIQAq-option' instead.
+AD4- 
+AD4- The bug was introduced in commit c5cb09b6f8 (+ACI-Cleanup: Factor out some
+AD4- cut-and-paste code.+ACI-).
+AD4- 
+AD4- Signed-off-by: Xi Wang +ADw-xi.wang+AEA-gmail.com+AD4-
+AD4- Cc: stable+AEA-vger.kernel.org
+AD4- ---
+AD4-  fs/nfs/super.c +AHw-    2 +--
+AD4-  1 file changed, 1 insertion(+-), 1 deletion(-)
+AD4- 
+AD4- diff --git a/fs/nfs/super.c b/fs/nfs/super.c
+AD4- index c25cadf8..2e7e8c8 100644
+AD4- --- a/fs/nfs/super.c
+AD4- +-+-+- b/fs/nfs/super.c
+AD4- +AEAAQA- -1152,7 +-1152,7 +AEAAQA- static int nfs+AF8-get+AF8-option+AF8-str(substring+AF8-t args+AFsAXQ-, char +ACoAKg-option)
+AD4-  +AHs-
+AD4-  	kfree(+ACo-option)+ADs-
+AD4-  	+ACo-option +AD0- match+AF8-strdup(args)+ADs-
+AD4- -	return +ACE-option+ADs-
+AD4- +-	return +ACEAKg-option+ADs-
+AD4-  +AH0-
+AD4-  
+AD4-  static int nfs+AF8-get+AF8-option+AF8-ul(substring+AF8-t args+AFsAXQ-, unsigned long +ACo-option)

Thank you+ACE- Applied to the bugfixes branch.

-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust+AEA-netapp.com
www.netapp.com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux