aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlabel/netlabel_kapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlabel/netlabel_kapi.c')
-rw-r--r--net/netlabel/netlabel_kapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlabel/netlabel_kapi.c b/net/netlabel/netlabel_kapi.c
index 28cddc85b700..1325776daa27 100644
--- a/net/netlabel/netlabel_kapi.c
+++ b/net/netlabel/netlabel_kapi.c
@@ -677,7 +677,7 @@ int netlbl_catmap_setrng(struct netlbl_lsm_catmap **catmap,
677 u32 spot = start; 677 u32 spot = start;
678 678
679 while (rc == 0 && spot <= end) { 679 while (rc == 0 && spot <= end) {
680 if (((spot & (BITS_PER_LONG - 1)) != 0) && 680 if (((spot & (BITS_PER_LONG - 1)) == 0) &&
681 ((end - spot) > BITS_PER_LONG)) { 681 ((end - spot) > BITS_PER_LONG)) {
682 rc = netlbl_catmap_setlong(catmap, 682 rc = netlbl_catmap_setlong(catmap,
683 spot, 683 spot,