소스 검색

qeth: Convert over to dst_neigh_lookup_skb().

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 13 년 전
부모
커밋
24db1ba866
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      drivers/s390/net/qeth_l3_main.c

+ 2 - 1
drivers/s390/net/qeth_l3_main.c

@@ -2700,10 +2700,11 @@ int inline qeth_l3_get_cast_type(struct qeth_card *card, struct sk_buff *skb)
 	rcu_read_lock();
 	rcu_read_lock();
 	dst = skb_dst(skb);
 	dst = skb_dst(skb);
 	if (dst)
 	if (dst)
-		n = dst_get_neighbour_noref(dst);
+		n = dst_neigh_lookup_skb(dst, skb);
 	if (n) {
 	if (n) {
 		cast_type = n->type;
 		cast_type = n->type;
 		rcu_read_unlock();
 		rcu_read_unlock();
+		neigh_release(n);
 		if ((cast_type == RTN_BROADCAST) ||
 		if ((cast_type == RTN_BROADCAST) ||
 		    (cast_type == RTN_MULTICAST) ||
 		    (cast_type == RTN_MULTICAST) ||
 		    (cast_type == RTN_ANYCAST))
 		    (cast_type == RTN_ANYCAST))