Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99b437a9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Torvalds
Browse files

AFS: Potential null dereference



It seems clear from the surrounding code that xpermits is allowed to be
NULL here.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 45575f5a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -189,6 +189,7 @@ void afs_cache_permit(struct afs_vnode *vnode, struct key *key, long acl_order)
	if (!permits)
		goto out_unlock;

	if (xpermits)
		memcpy(permits->permits, xpermits->permits,
			count * sizeof(struct afs_permit));