summaryrefslogtreecommitdiffstats
path: root/security/selinux/netnode.c
diff options
context:
space:
mode:
authorEric Paris2011-04-20 16:21:28 +0200
committerEric Paris2011-04-25 16:18:27 +0200
commita35c6c8368d88deae6890205e73ed330b6df1db7 (patch)
treef61c3da7460bb5ab39353404456d92e005e9000e /security/selinux/netnode.c
parentSELinux: delete debugging printks from filename_trans rule processing (diff)
downloadkernel-qcow2-linux-a35c6c8368d88deae6890205e73ed330b6df1db7.tar.gz
kernel-qcow2-linux-a35c6c8368d88deae6890205e73ed330b6df1db7.tar.xz
kernel-qcow2-linux-a35c6c8368d88deae6890205e73ed330b6df1db7.zip
SELinux: silence build warning when !CONFIG_BUG
If one builds a kernel without CONFIG_BUG there are a number of 'may be used uninitialized' warnings. Silence these by returning after the BUG(). Signed-off-by: Eric Paris <eparis@redhat.com> Reviewed-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/netnode.c')
-rw-r--r--security/selinux/netnode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/selinux/netnode.c b/security/selinux/netnode.c
index 65ebfe954f85..3618251d0fdb 100644
--- a/security/selinux/netnode.c
+++ b/security/selinux/netnode.c
@@ -141,6 +141,7 @@ static struct sel_netnode *sel_netnode_find(const void *addr, u16 family)
break;
default:
BUG();
+ return NULL;
}
list_for_each_entry_rcu(node, &sel_netnode_hash[idx].list, list)