OSDN Git Service

cifs: return error on invalid value written to cifsFYI
authorRonnie Sahlberg <lsahlber@redhat.com>
Wed, 23 May 2018 23:53:39 +0000 (09:53 +1000)
committerSteve French <stfrench@microsoft.com>
Wed, 30 May 2018 21:06:18 +0000 (16:06 -0500)
commit25ad1cbd02fc9939089dafeb0a5698a7ca054237
treedc3056baba3147fbf9e36856136fb65a2102c4d0
parent57c55cd7c77b81827757fdbe8dda8c3927c52b4e
cifs: return error on invalid value written to cifsFYI

RHBZ: 1539617

Check that, if it is not a boolean, the value the user tries
to write to /proc/fs/cifs/cifsFYI is valid and return an error
if not.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reported-by: Xiaoli Feng <xifeng@redhat.com>
fs/cifs/cifs_debug.c