All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: replace dev_base with dev_base_lock in comment typo
@ 2014-06-25  6:07 Yi Li
  0 siblings, 0 replies; only message in thread
From: Yi Li @ 2014-06-25  6:07 UTC (permalink / raw)
  To: kernel-janitors

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'.

Signed-off-by: Yi Li <lovelylich@gmail.com>
---
 net/core/dev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index a04b12f..1a95e08 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -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).
-- 
1.9.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-25  6:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-25  6:07 [PATCH] net: replace dev_base with dev_base_lock in comment typo Yi Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.