apparmor: Fix error cod in __aa_fs_profile_mkdir()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 23 May 2017 14:33:46 +0000 (17:33 +0300)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 8 Jun 2017 18:21:05 +0000 (11:21 -0700)
commitffac1de6cf6f84e47cdb6d6de0629bc534f60961
treec8dcf57c6a10a421de56722c0b0518c666d181ba
parent47dbd1cdbb4e74d656e444deb6675ee38ca1b1f3
apparmor: Fix error cod in __aa_fs_profile_mkdir()

We can either return PTR_ERR(NULL) or a PTR_ERR(a valid pointer) here.
Returning NULL is probably not good, but since this happens at boot
then we are probably already toasted if we were to hit this bug in real
life.  In other words, it seems like a very low severity bug to me.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c