summaryrefslogtreecommitdiffstats
path: root/security/apparmor/apparmorfs.c
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-01-16 00:43:15 -0800
committerJohn Johansen <john.johansen@canonical.com>2017-01-16 01:18:56 -0800
commite6bfa25deb5096c05a08f01e4d6a436dd331fa88 (patch)
tree5db7ff5a4ec43181058deb41fdcf403006fe3b42 /security/apparmor/apparmorfs.c
parent2c17cd3681eab6d5d380dcfd073b5ee8c3440e7e (diff)
downloadlinux-e6bfa25deb5096c05a08f01e4d6a436dd331fa88.tar.bz2
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.c2
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 */