policy: pass items, not &items
authorKay Sievers <kay@vrfy.org>
Tue, 17 Jun 2014 16:17:34 +0000 (18:17 +0200)
committerKay Sievers <kay@vrfy.org>
Tue, 17 Jun 2014 16:17:34 +0000 (18:17 +0200)
policy.c

index 6f2bb1f61aa1208f46955442e3556a4a5a14398c..bf49f68fb8040b74beac956fdacc1a13788375f4 100644 (file)
--- a/policy.c
+++ b/policy.c
@@ -499,7 +499,7 @@ int kdbus_policy_set(struct kdbus_policy_db *db,
 
        /* Walk the list of items and look for new policies */
        KDBUS_ITEMS_FOREACH(item, items, items_size) {
-               if (!KDBUS_ITEM_VALID(item, &items, items_size)) {
+               if (!KDBUS_ITEM_VALID(item, items, items_size)) {
                        ret = -EINVAL;
                        goto exit;
                }