summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trafgen_parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index 2340fd4..add8698 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -117,7 +117,7 @@ static inline void __init_new_packet_slot(struct packet *slot)
static inline void __init_new_counter_slot(struct packet_dyn *slot)
{
- memset(slot, 0, sizeof(*slot);
+ memset(slot, 0, sizeof(*slot));
}
static inline void __init_new_randomizer_slot(struct packet_dyn *slot)
ple. Replace the locked test/set of b_io_error with a cmpxchg() call. This eliminates the need for the lock and thus the lock ordering problem goes away. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat