diff options
Diffstat (limited to 'drivers/scsi/cxgbi/libcxgbi.c')
-rw-r--r-- | drivers/scsi/cxgbi/libcxgbi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/cxgbi/libcxgbi.c b/drivers/scsi/cxgbi/libcxgbi.c index a2a9c7c6c643..77ac217ad5ce 100644 --- a/drivers/scsi/cxgbi/libcxgbi.c +++ b/drivers/scsi/cxgbi/libcxgbi.c | |||
@@ -492,7 +492,7 @@ static struct cxgbi_sock *cxgbi_check_route(struct sockaddr *dst_addr) | |||
492 | goto err_out; | 492 | goto err_out; |
493 | } | 493 | } |
494 | dst = &rt->dst; | 494 | dst = &rt->dst; |
495 | ndev = dst->neighbour->dev; | 495 | ndev = dst_get_neighbour(dst)->dev; |
496 | 496 | ||
497 | if (rt->rt_flags & (RTCF_MULTICAST | RTCF_BROADCAST)) { | 497 | if (rt->rt_flags & (RTCF_MULTICAST | RTCF_BROADCAST)) { |
498 | pr_info("multi-cast route %pI4, port %u, dev %s.\n", | 498 | pr_info("multi-cast route %pI4, port %u, dev %s.\n", |
@@ -506,7 +506,7 @@ static struct cxgbi_sock *cxgbi_check_route(struct sockaddr *dst_addr) | |||
506 | ndev = ip_dev_find(&init_net, daddr->sin_addr.s_addr); | 506 | ndev = ip_dev_find(&init_net, daddr->sin_addr.s_addr); |
507 | mtu = ndev->mtu; | 507 | mtu = ndev->mtu; |
508 | pr_info("rt dev %s, loopback -> %s, mtu %u.\n", | 508 | pr_info("rt dev %s, loopback -> %s, mtu %u.\n", |
509 | dst->neighbour->dev->name, ndev->name, mtu); | 509 | dst_get_neighbour(dst)->dev->name, ndev->name, mtu); |
510 | } | 510 | } |
511 | 511 | ||
512 | cdev = cxgbi_device_find_by_netdev(ndev, &port); | 512 | cdev = cxgbi_device_find_by_netdev(ndev, &port); |