diff options
Diffstat (limited to 'net/rose/af_rose.c')
-rw-r--r-- | net/rose/af_rose.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index 46461a69cd0f..7dbbc0891623 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
@@ -75,6 +75,16 @@ ax25_address rose_callsign; | |||
75 | */ | 75 | */ |
76 | static struct lock_class_key rose_netdev_xmit_lock_key; | 76 | static struct lock_class_key rose_netdev_xmit_lock_key; |
77 | 77 | ||
78 | static void rose_set_lockdep_one(struct netdev_queue *txq) | ||
79 | { | ||
80 | lockdep_set_class(&txq->_xmit_lock, &rose_netdev_xmit_lock_key); | ||
81 | } | ||
82 | |||
83 | static void rose_set_lockdep_key(struct net_device *dev) | ||
84 | { | ||
85 | rose_set_lockdep_one(&dev->tx_queue); | ||
86 | } | ||
87 | |||
78 | /* | 88 | /* |
79 | * Convert a ROSE address into text. | 89 | * Convert a ROSE address into text. |
80 | */ | 90 | */ |
@@ -1576,7 +1586,7 @@ static int __init rose_proto_init(void) | |||
1576 | free_netdev(dev); | 1586 | free_netdev(dev); |
1577 | goto fail; | 1587 | goto fail; |
1578 | } | 1588 | } |
1579 | lockdep_set_class(&dev->_xmit_lock, &rose_netdev_xmit_lock_key); | 1589 | rose_set_lockdep_key(dev); |
1580 | dev_rose[i] = dev; | 1590 | dev_rose[i] = dev; |
1581 | } | 1591 | } |
1582 | 1592 | ||