Merge tag 'selinux-pr-20190115' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux
Pull SELinux fix from Paul Moore: "One small patch to fix a potential NULL dereference on a failed SELinux policy load" * tag 'selinux-pr-20190115' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux: selinux: fix GPF on invalid policy
This commit is contained in:
@@ -732,7 +732,8 @@ static int sens_destroy(void *key, void *datum, void *p)
|
||||
kfree(key);
|
||||
if (datum) {
|
||||
levdatum = datum;
|
||||
ebitmap_destroy(&levdatum->level->cat);
|
||||
if (levdatum->level)
|
||||
ebitmap_destroy(&levdatum->level->cat);
|
||||
kfree(levdatum->level);
|
||||
}
|
||||
kfree(datum);
|
||||
|
Reference in New Issue
Block a user