libcxgb: fix error check for ip6_route_output()
authorVarun Prakash <varun@chelsio.com>
Tue, 3 Jan 2017 15:55:48 +0000 (21:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2017 21:01:50 +0000 (22:01 +0100)
commit30bd002c454ad54ccca08dc056577c94021085af
treeaa3bb0c9a72c844c1287cad5bb78dc9c7233ef60
parent5eb97be8798189ee1080b225d0c8f14f54736bca
libcxgb: fix error check for ip6_route_output()

[ Upstream commit a9a8cdb368d99bb655b5cdabea560446db0527cc ]

ip6_route_output() never returns NULL so
check dst->error instead of !dst.

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.c