diff options
author | John Johansen <john.johansen@canonical.com> | 2017-01-16 09:43:15 +0100 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-01-16 10:18:56 +0100 |
commit | e6bfa25deb5096c05a08f01e4d6a436dd331fa88 (patch) | |
tree | 5db7ff5a4ec43181058deb41fdcf403006fe3b42 /security/apparmor/apparmorfs.c | |
parent | apparmor: fix restricted endian type warnings for policy unpack (diff) | |
download | linux-e6bfa25deb5096c05a08f01e4d6a436dd331fa88.tar.xz linux-e6bfa25deb5096c05a08f01e4d6a436dd331fa88.zip |
apparmor: replace remaining BUG_ON() asserts with AA_BUG()
AA_BUG() uses WARN and won't break the kernel like BUG_ON().
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/apparmorfs.c')
-rw-r--r-- | security/apparmor/apparmorfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index 6834000640d7..41073f70eb41 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c @@ -91,7 +91,7 @@ static struct aa_loaddata *aa_simple_write_to_buffer(const char __user *userbuf, { struct aa_loaddata *data; - BUG_ON(copy_size > alloc_size); + AA_BUG(copy_size > alloc_size); if (*pos != 0) /* only writes from pos 0, that is complete writes */ |