Merge tag 'v5.0-rc3' into next-general
Sync to Linux 5.0-rc3 to pull in the VFS changes which impacted a lot of the LSM code.
This commit is contained in:
@@ -1472,6 +1472,13 @@ int security_cred_alloc_blank(struct cred *cred, gfp_t gfp)
|
||||
|
||||
void security_cred_free(struct cred *cred)
|
||||
{
|
||||
/*
|
||||
* There is a failure case in prepare_creds() that
|
||||
* may result in a call here with ->security being NULL.
|
||||
*/
|
||||
if (unlikely(cred->security == NULL))
|
||||
return;
|
||||
|
||||
call_void_hook(cred_free, cred);
|
||||
|
||||
kfree(cred->security);
|
||||
|
Reference in New Issue
Block a user