diff options
author | KaiGai Kohei <kaigai@kaigai.gr.jp> | 2007-11-06 17:17:16 +0100 |
---|---|---|
committer | James Morris <jmorris@sdv.(none)> | 2007-11-07 22:55:10 +0100 |
commit | 6d2b685564ba417f4c6d80c3661f0dfee13fff85 (patch) | |
tree | a4e098a0eaa0f59b84f167e875a987779a6cba5f /security/selinux/ss/ebitmap.c | |
parent | SELinux: suppress a warning for 64k pages. (diff) | |
download | linux-6d2b685564ba417f4c6d80c3661f0dfee13fff85.tar.xz linux-6d2b685564ba417f4c6d80c3661f0dfee13fff85.zip |
SELinux: fix bug in new ebitmap code.
The "e_iter = e_iter->next;" statement in the inner for loop is primally
bug. It should be moved to outside of the for loop.
Signed-off-by: KaiGai Kohei <kaigai@kaigai.gr.jp>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/ss/ebitmap.c')
-rw-r--r-- | security/selinux/ss/ebitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/ebitmap.c b/security/selinux/ss/ebitmap.c index c1a6b22d48d9..920b5e36a1af 100644 --- a/security/selinux/ss/ebitmap.c +++ b/security/selinux/ss/ebitmap.c @@ -129,8 +129,8 @@ int ebitmap_netlbl_export(struct ebitmap *ebmap, cmap_sft = delta % NETLBL_CATMAP_MAPSIZE; c_iter->bitmap[cmap_idx] |= e_iter->maps[cmap_idx] << cmap_sft; - e_iter = e_iter->next; } + e_iter = e_iter->next; } return 0; |