diff options
-rw-r--r-- | net/sctp/ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index ea14cb445295..f3f0f4dc31dd 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c | |||
@@ -345,7 +345,7 @@ static void sctp_v6_get_dst(struct sctp_transport *t, union sctp_addr *saddr, | |||
345 | } | 345 | } |
346 | 346 | ||
347 | out: | 347 | out: |
348 | if (!IS_ERR(dst)) { | 348 | if (!IS_ERR_OR_NULL(dst)) { |
349 | struct rt6_info *rt; | 349 | struct rt6_info *rt; |
350 | rt = (struct rt6_info *)dst; | 350 | rt = (struct rt6_info *)dst; |
351 | t->dst = dst; | 351 | t->dst = dst; |