diff options
author | Javi Merino <cibervicho@gmail.com> | 2011-03-07 21:13:07 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-07 13:20:05 -0800 |
commit | d5c97c1099f5617dc1ba3d1f0058d1341b1faf4c (patch) | |
tree | 1730fe5311f26de9921d92847f481758a2c1ed86 /Documentation/kref.txt | |
parent | f1a304e7941cc76353363a139cbb6a4b1ca7c737 (diff) | |
download | linux-d5c97c1099f5617dc1ba3d1f0058d1341b1faf4c.tar.gz linux-d5c97c1099f5617dc1ba3d1f0058d1341b1faf4c.tar.bz2 linux-d5c97c1099f5617dc1ba3d1f0058d1341b1faf4c.zip |
kref: Fix typo in kref documentation
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>
Diffstat (limited to 'Documentation/kref.txt')
-rw-r--r-- | Documentation/kref.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/kref.txt b/Documentation/kref.txt index ae203f91ee9b..48ba715d5a63 100644 --- 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); |