]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit23f5eb58fd2d6a9d682eaac05672746e5ec126e7
tree06797f7f000ad72df4127fa78c673772d93ddede
parent61c62e3d0020fc26a02c1965a387db67d74dd9b5
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