diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-05-23 13:28:54 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-24 15:21:04 -0400 |
commit | 3ab2137915aea0ce7b3ec02e0f260ecc0f1c289d (patch) | |
tree | c61ede11017fffa658fb9ec7d9e57587a4e6495b /net/netrom/nr_route.c | |
parent | 12e8b570e732eaa5eae3a2895ba3fbcf91bde2b4 (diff) |
sctp: fix stream update when processing dupcookie
Since commit 3dbcc105d556 ("sctp: alloc stream info when initializing
asoc"), stream and stream.out info are always alloced when creating
an asoc.
So it's not correct to check !asoc->stream before updating stream
info when processing dupcookie, but would be better to check asoc
state instead.
Fixes: 3dbcc105d556 ("sctp: alloc stream info when initializing asoc")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom/nr_route.c')
0 files changed, 0 insertions, 0 deletions