commit | 0a6b29230ec336189bab32498df3f06c8a6944d8 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Aug 02 11:38:23 2018 +0300 |
committer | John Johansen <john.johansen@canonical.com> | Tue Aug 21 16:24:56 2018 -0700 |
tree | 0ad3a73388010f8214152d9689f6d4a304c09b04 | |
parent | 24b87a16fee0ebd49b66e8523186ace7ea09ad12 [diff] |
apparmor: fix an error code in __aa_create_ns() We should return error pointers in this function. Returning NULL results in a NULL dereference in the caller. Fixes: 73688d1ed0b8 ("apparmor: refactor prepare_ns() and make usable from different views") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: John Johansen <john.johansen@canonical.com>