bitmap is used before being initialized.
Initialize it to zero before using it.
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20251031-xsk-v7-2-39fe486593a3@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
u32 sock_num = 0;
int res, ret;
+ bitmap_zero(bitmap, test->nb_sockets);
+
ret = gettimeofday(&tv_now, NULL);
if (ret)
exit_with_error(errno);
DECLARE_BITMAP(bitmap, test->nb_sockets);
u32 i, ret;
+ bitmap_zero(bitmap, test->nb_sockets);
+
while (!(all_packets_sent(test, bitmap))) {
for (i = 0; i < test->nb_sockets; i++) {
struct pkt_stream *pkt_stream;