From: Jeff Layton Date: Sun, 26 May 2013 11:01:01 +0000 (-0400) Subject: cifs: clean up the SecurityFlags write handler X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~20^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7715dad8e10c4115ec85471300b452c9194146b5;p=pandora-kernel.git cifs: clean up the SecurityFlags write handler The SecurityFlags handler uses an obsolete simple_strtoul() call, and doesn't really handle the bounds checking well. Fix it to use kstrtouint() instead. Clean up the error messages as well and fix a bogus check for an unsigned int to be less than 0. Signed-off-by: Jeff Layton Reviewed-by: Pavel Shilovsky Signed-off-by: Steve French --- Reading git-diff-tree failed