cifs: check whether acl is valid early

Dan reported that acl is dereferenced before being checked and this is a
valid problem. Fix it be erroring out early instead of doing it later after
we've already relied on acl to be a valid pointer.

Fixes: dc1af4c4b4 ("cifs: implement set acl method")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2022-10-28 12:45:10 +02:00 • committed by Christian Brauner (Microsoft)
commit cb2144d66b
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2