]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: fix hardcoded default security descriptor length
authorJeff Layton <jlayton@redhat.com>
Mon, 5 Nov 2012 11:47:04 +0000 (06:47 -0500)
committerJeff Layton <jlayton@redhat.com>
Mon, 5 Nov 2012 11:47:04 +0000 (06:47 -0500)
commitb8bab0c638d078f0bd016275923cdbaa6302c243
treedd45b67de5728be25484613d249d9b66076ead4f
parentf09b9cbbc6999dac18436d8d4355b04d05554a48
cifs: fix hardcoded default security descriptor length

It was hardcoded to 192 bytes, which was not enough when the max number
of subauthorities went to 15. Redefine this constant in terms of sizeof
the structs involved, and rename it for better clarity.

While we're at it, remove a couple more unused constants from cifsacl.h.

Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/cifsacl.c
fs/cifs/cifsacl.h