]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: clean up the SecurityFlags write handler
authorJeff Layton <jlayton@redhat.com>
Sun, 26 May 2013 11:01:01 +0000 (07:01 -0400)
committerSteve French <smfrench@gmail.com>
Thu, 13 Jun 2013 00:56:02 +0000 (19:56 -0500)
commita0884d4d66c9947e98f85017e0d5f8f1ea14d778
treea10f2abc599fd4c2688f63d89241ea445ba102d6
parent29a98f22258f658e702dda8d3f074c257b5e704d
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 <jlayton@redhat.com>
Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifs_debug.c