aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/pktgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r--net/core/pktgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 6a7320b39ed0..72145d4a2600 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -1786,7 +1786,7 @@ static void pktgen_setup_inject(struct pktgen_dev *pkt_dev)
1786 * use ipv6_get_lladdr if/when it's get exported 1786 * use ipv6_get_lladdr if/when it's get exported
1787 */ 1787 */
1788 1788
1789 read_lock(&addrconf_lock); 1789 rcu_read_lock();
1790 if ((idev = __in6_dev_get(pkt_dev->odev)) != NULL) { 1790 if ((idev = __in6_dev_get(pkt_dev->odev)) != NULL) {
1791 struct inet6_ifaddr *ifp; 1791 struct inet6_ifaddr *ifp;
1792 1792
@@ -1805,7 +1805,7 @@ static void pktgen_setup_inject(struct pktgen_dev *pkt_dev)
1805 } 1805 }
1806 read_unlock_bh(&idev->lock); 1806 read_unlock_bh(&idev->lock);
1807 } 1807 }
1808 read_unlock(&addrconf_lock); 1808 rcu_read_unlock();
1809 if (err) 1809 if (err)
1810 printk("pktgen: ERROR: IPv6 link address not availble.\n"); 1810 printk("pktgen: ERROR: IPv6 link address not availble.\n");
1811 } 1811 }