]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
apparmor: Fix an error code in aafs_create()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Jul 2017 07:39:20 +0000 (10:39 +0300)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 5 Sep 2017 12:34:46 +0000 (07:34 -0500)
commitc806027ef227c07a0ae134ace32d29cc9b882fe4
tree23d0180b221b6023d8253bdb6f86990ad53f1756
parent981bb872b2363697f392e739734e2f081b46ab3e
apparmor: Fix an error code in aafs_create()

We accidentally forgot to set the error code on this path.  It means we
return NULL instead of an error pointer.  I looked through a bunch of
callers and I don't think it really causes a big issue, but the
documentation says we're supposed to return error pointers here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
(cherry picked from commit aee58bf341db52a3a3563c6b972bfd4fc2d41e46 linux-next)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/apparmor/apparmorfs.c