projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1a304e
)
kref: Fix typo in kref documentation
author
Javi Merino
<cibervicho@gmail.com>
Mon, 7 Mar 2011 21:13:07 +0000
(21:13 +0000)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 7 Mar 2011 21:20:05 +0000
(13:20 -0800)
container_of() should refer to the struct created in the example.
Signed-off-by: Javi Merino <cibervicho@gmail.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/kref.txt
patch
|
blob
|
blame
|
history
diff --git
a/Documentation/kref.txt
b/Documentation/kref.txt
index ae203f91ee9b8a80e54f98d76f09457a665cad0f..48ba715d5a633fb246855aca0595ce47ecb5e187 100644
(file)
--- a/
Documentation/kref.txt
+++ b/
Documentation/kref.txt
@@
-156,7
+156,7
@@
static struct my_data *get_entry()
struct my_data *entry = NULL;
mutex_lock(&mutex);
if (!list_empty(&q)) {
- entry = container_of(q.next, struct my_
q_entry
, link);
+ entry = container_of(q.next, struct my_
data
, link);
kref_get(&entry->refcount);
}
mutex_unlock(&mutex);