cifs: deal with id_to_sid embedded sid reply corner case
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:37 +0000 (22:04 -0600)
A SID could potentially be embedded inside of payload.value if there are
no subauthorities, and the arch has 8 byte pointers. Allow for that
possibility there.

While we're at it, rephrase the "embedding" check in terms of
key->payload to allow for the possibility that the union might change
size in the future.

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

Simple merge