OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57002bf
)
SELinux: fix bug in new ebitmap code.
author
KaiGai Kohei
<kaigai@kaigai.gr.jp>
Tue, 6 Nov 2007 16:17:16 +0000
(
01:17
+0900)
committer
James Morris
<jmorris@sdv.(none)>
Wed, 7 Nov 2007 21:55:10 +0000
(08:55 +1100)
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>
security/selinux/ss/ebitmap.c
patch
|
blob
|
history
diff --git
a/security/selinux/ss/ebitmap.c
b/security/selinux/ss/ebitmap.c
index
c1a6b22
..
920b5e3
100644
(file)
--- 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;