From: Vlad Yasevich Date: Tue, 8 Jul 2008 09:28:39 +0000 (-0700) Subject: sctp: Mark the tsn as received after all allocations finish X-Git-Tag: v2.6.26~25^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3888e9efc9bf05e60504d2a420be7a527ff43678;p=pandora-kernel.git sctp: Mark the tsn as received after all allocations finish If we don't have the buffer space or memory allocations fail, the data chunk is dropped, but TSN is still reported as received. This introduced a data loss that can't be recovered. We should only mark TSNs are received after memory allocations finish. The one exception is the invalid stream identifier, but that's due to user error and is reported back to the user. This was noticed by Michael Tuexen. Signed-off-by: Vlad Yasevich Signed-off-by: David S. Miller --- Reading git-diff-tree failed