AFS: Potential null dereference
It seems clear from the surrounding code that xpermits is allowed to be NULL here. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
45575f5a42
commit
99b437a925
1 changed files with 3 additions and 2 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue