]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: fix hardcoded default security descriptor length
authorJeff Layton <jlayton@redhat.com>
Mon, 3 Dec 2012 11:05:31 +0000 (06:05 -0500)
committerSteve French <smfrench@gmail.com>
Sun, 9 Dec 2012 04:04:35 +0000 (22:04 -0600)
commit7ee0b4c635c091eb3c805977ba886bae2fd33f0c
tree92a8dcfefe7d6651886d894caba9dafafd9c59a7
parent2ae03025d520de581fd1c58e98bbf3045c0f4695
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>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsacl.c
fs/cifs/cifsacl.h