diff options
Diffstat (limited to 'net/sctp/tsnmap.c')
-rw-r--r-- | net/sctp/tsnmap.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/net/sctp/tsnmap.c b/net/sctp/tsnmap.c index 142ed7ca424d..35c73e82553a 100644 --- a/net/sctp/tsnmap.c +++ b/net/sctp/tsnmap.c | |||
@@ -335,10 +335,11 @@ void sctp_tsnmap_renege(struct sctp_tsnmap *map, __u32 tsn) | |||
335 | } | 335 | } |
336 | 336 | ||
337 | /* How many gap ack blocks do we have recorded? */ | 337 | /* How many gap ack blocks do we have recorded? */ |
338 | __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map) | 338 | __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map, |
339 | struct sctp_gap_ack_block *gabs) | ||
339 | { | 340 | { |
340 | struct sctp_tsnmap_iter iter; | 341 | struct sctp_tsnmap_iter iter; |
341 | int gabs = 0; | 342 | int ngaps = 0; |
342 | 343 | ||
343 | /* Refresh the gap ack information. */ | 344 | /* Refresh the gap ack information. */ |
344 | if (sctp_tsnmap_has_gap(map)) { | 345 | if (sctp_tsnmap_has_gap(map)) { |
@@ -348,14 +349,14 @@ __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map) | |||
348 | &start, | 349 | &start, |
349 | &end)) { | 350 | &end)) { |
350 | 351 | ||
351 | map->gabs[gabs].start = htons(start); | 352 | gabs[ngaps].start = htons(start); |
352 | map->gabs[gabs].end = htons(end); | 353 | gabs[ngaps].end = htons(end); |
353 | gabs++; | 354 | ngaps++; |
354 | if (gabs >= SCTP_MAX_GABS) | 355 | if (ngaps >= SCTP_MAX_GABS) |
355 | break; | 356 | break; |
356 | } | 357 | } |
357 | } | 358 | } |
358 | return gabs; | 359 | return ngaps; |
359 | } | 360 | } |
360 | 361 | ||
361 | static int sctp_tsnmap_grow(struct sctp_tsnmap *map, u16 gap) | 362 | static int sctp_tsnmap_grow(struct sctp_tsnmap *map, u16 gap) |