Skip to content
Commit 0a6b2923 authored by Dan Carpenter's avatar Dan Carpenter Committed by John Johansen
Browse files

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: 73688d1e

 ("apparmor: refactor prepare_ns() and make usable from different views")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent 24b87a16
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment