Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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>
  • Loading branch information...
commit d5c97c1099f5617dc1ba3d1f0058d1341b1faf4c 1 parent f1a304e
@JaviMerino JaviMerino authored gregkh committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  Documentation/kref.txt
View
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.