]> git.baikalelectronics.ru Git - 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)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 22 Sep 2017 20:00:57 +0000 (13:00 -0700)
commit0d506e0105eeb27006497bc0743a93d3ff1b599b
tree82c7bde1491a5cf98155111da826e073ef276c0e
parentbf449099f6a37b9ada3327db3a08331bcab61429
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>
security/apparmor/apparmorfs.c