]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
sctp: Make sure we always return valid retransmit path
authorVlad Yasevich <vladislav.yasevich@hp.com>
Sat, 1 May 2010 02:41:09 +0000 (22:41 -0400)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Sat, 1 May 2010 02:41:09 +0000 (22:41 -0400)
commitd598b166ced20d9b9281ea3527c0e18405ddb803
tree9133b90a3f42347842190938cd27fa7ce6729377
parentb99a4d53a74ac25eb4b930eef6c745579149c571
sctp: Make sure we always return valid retransmit path

commit 4951feda0c60d1ef681f1a270afdd617924ab041
    sctp: Do no select unconfirmed transports for retransmissions

added code to make sure that we do not select unconfirmed paths
for data transmission.  This caused a problem when there are only
2 paths, 1 unconfirmed and 1 unreachable.  In that case, the next
retransmit path returned is NULL and that causes a kernel crash.

The solution is to only change retransmit paths if we found one to use.

Reported-by: Frank Schuster <frank.schuster01@web.de>
Signed-off-b: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/associola.c