aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/ss/ebitmap.c
diff options
context:
space:
mode:
authorKaiGai Kohei <kaigai@kaigai.gr.jp>2007-11-06 11:17:16 -0500
committerJames Morris <jmorris@sdv.(none)>2007-11-07 16:55:10 -0500
commit6d2b685564ba417f4c6d80c3661f0dfee13fff85 (patch)
treea4e098a0eaa0f59b84f167e875a987779a6cba5f /security/selinux/ss/ebitmap.c
parent57002bfb31283e84f694763ed4db0fb761b7d6a9 (diff)
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.c2
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,
129 cmap_sft = delta % NETLBL_CATMAP_MAPSIZE; 129 cmap_sft = delta % NETLBL_CATMAP_MAPSIZE;
130 c_iter->bitmap[cmap_idx] 130 c_iter->bitmap[cmap_idx]
131 |= e_iter->maps[cmap_idx] << cmap_sft; 131 |= e_iter->maps[cmap_idx] << cmap_sft;
132 e_iter = e_iter->next;
133 } 132 }
133 e_iter = e_iter->next;
134 } 134 }
135 135
136 return 0; 136 return 0;