Skip to contentSkip to conversation

net: replace dev_base with dev_base_lock in comment typo

PATCH New Yi Li 1 participant 1 message Jun 25, 2014

Subsystems (2)
lore
Share & tools
lore

Yi Li

author
#0 lore raw

PATCH 1/1 net: replace dev_base with dev_base_lock in comment typo

There is no dev_base in dev.c now. Any time we access dev_base_head, we should hold dev_base_lock or rtnl_lock().So, change the comment from 'dev_base' into 'dev_base_lock'.

---
 net/core/dev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/core/dev.c +2 -2
index a04b12f..1a95e08 100644
@@ -953,7 +953,7 @@ EXPORT_SYMBOL(dev_valid_name);
  *
  *	Passed a format string - eg "lt%d" it will try and find a suitable
  *	id. It scans list of devices to build up a free map, then chooses
- *	the first empty slot. The caller must hold the dev_base or rtnl lock
+ *	the first empty slot. The caller must hold the dev_base_lock or rtnl lock
  *	while allocating the name and adding the device in order to avoid
  *	duplicates.
  *	Limited to bits_per_byte * page size devices (ie 32K on most platforms).
@@ -1018,7 +1018,7 @@ static int __dev_alloc_name(struct net *net, const char *name, char *buf)
  *
  *	Passed a format string - eg "lt%d" it will try and find a suitable
  *	id. It scans list of devices to build up a free map, then chooses
- *	the first empty slot. The caller must hold the dev_base or rtnl lock
+ *	the first empty slot. The caller must hold the dev_base_lock or rtnl lock
  *	while allocating the name and adding the device in order to avoid
  *	duplicates.
  *	Limited to bits_per_byte * page size devices (ie 32K on most platforms).
Signature · 1 line
1.9.3