cifs: Use kstrndup for cifs_sb->mountdata
authorSean Finney <seanius@seanius.net>
Mon, 11 Apr 2011 13:19:34 +0000 (13:19 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 19 May 2011 14:10:55 +0000 (14:10 +0000)
commit5167f11ec962690ecf926fab00f1d0524cd78664
tree06797f7f000ad72df4127fa78c673772d93ddede
parent046462abca2576cc1c71f501c148798fac4ea314
cifs: Use kstrndup for cifs_sb->mountdata

A relatively minor nit, but also clarified the "consensus" from the
preceding comments that it is in fact better to try for the kstrdup
early and cleanup while cleaning up is still a simple thing to do.

Reviewed-By: Steve French <smfrench@gmail.com>
Signed-off-by: Sean Finney <seanius@seanius.net>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c