]> git.droids-corp.org - dpdk.git/blobdiff - lib/distributor/rte_distributor_single.c
net/bnxt: fix null dereference in session cleanup
[dpdk.git] / lib / distributor / rte_distributor_single.c
index de90aa8bb55bf7ac62dbdaf4888086ed98298df2..2c77ac454a0a9be5b2b58e73cdb62b91cc90ae39 100644 (file)
@@ -245,8 +245,7 @@ rte_distributor_process_single(struct rte_distributor_single *d,
                         * worker given by the bit-position
                         */
                        for (i = 0; i < d->num_workers; i++)
                         * worker given by the bit-position
                         */
                        for (i = 0; i < d->num_workers; i++)
-                               match |= (!(d->in_flight_tags[i] ^ new_tag)
-                                       << i);
+                               match |= ((uint64_t)!(d->in_flight_tags[i] ^ new_tag) << i);
 
                        /* Only turned-on bits are considered as match */
                        match &= d->in_flight_bitmask;
 
                        /* Only turned-on bits are considered as match */
                        match &= d->in_flight_bitmask;