Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sctp: fix compile warnings in sctp_tsnmap_num_gabs

net/sctp/tsnmap.c: In function ‘sctp_tsnmap_num_gabs’:
net/sctp/tsnmap.c:347: warning: ‘start’ may be used uninitialized in this function
net/sctp/tsnmap.c:347: warning: ‘end’ may be used uninitialized in this function

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Shan Wei and committed by
David S. Miller
59ed5aba 089c3482

+1 -1
+1 -1
net/sctp/tsnmap.c
··· 344 344 345 345 /* Refresh the gap ack information. */ 346 346 if (sctp_tsnmap_has_gap(map)) { 347 - __u16 start, end; 347 + __u16 start = 0, end = 0; 348 348 sctp_tsnmap_iter_init(map, &iter); 349 349 while (sctp_tsnmap_next_gap_ack(map, &iter, 350 350 &start,