ebitmap.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) ebitmap.c (5b5e0928f742cfa853b2411400a1b19fa379d758)
1/*
2 * Implementation of the extensible bitmap type.
3 *
4 * Author : Stephen Smalley, <sds@epoch.ncsc.mil>
5 */
6/*
7 * Updated: Hewlett-Packard <paul@paul-moore.com>
8 *

--- 346 unchanged lines hidden (view full) ---

355 goto out;
356
357 mapunit = le32_to_cpu(buf[0]);
358 e->highbit = le32_to_cpu(buf[1]);
359 count = le32_to_cpu(buf[2]);
360
361 if (mapunit != BITS_PER_U64) {
362 printk(KERN_ERR "SELinux: ebitmap: map size %u does not "
1/*
2 * Implementation of the extensible bitmap type.
3 *
4 * Author : Stephen Smalley, <sds@epoch.ncsc.mil>
5 */
6/*
7 * Updated: Hewlett-Packard <paul@paul-moore.com>
8 *

--- 346 unchanged lines hidden (view full) ---

355 goto out;
356
357 mapunit = le32_to_cpu(buf[0]);
358 e->highbit = le32_to_cpu(buf[1]);
359 count = le32_to_cpu(buf[2]);
360
361 if (mapunit != BITS_PER_U64) {
362 printk(KERN_ERR "SELinux: ebitmap: map size %u does not "
363 "match my size %Zd (high bit was %d)\n",
363 "match my size %zd (high bit was %d)\n",
364 mapunit, BITS_PER_U64, e->highbit);
365 goto bad;
366 }
367
368 /* round up e->highbit */
369 e->highbit += EBITMAP_SIZE - 1;
370 e->highbit -= (e->highbit % EBITMAP_SIZE);
371

--- 150 unchanged lines hidden ---
364 mapunit, BITS_PER_U64, e->highbit);
365 goto bad;
366 }
367
368 /* round up e->highbit */
369 e->highbit += EBITMAP_SIZE - 1;
370 e->highbit -= (e->highbit % EBITMAP_SIZE);
371

--- 150 unchanged lines hidden ---