Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5c97c10 authored by Javi Merino's avatar Javi Merino Committed by Greg Kroah-Hartman
Browse files

kref: Fix typo in kref documentation



container_of() should refer to the struct created in the example.

Signed-off-by: default avatarJavi Merino <cibervicho@gmail.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f1a304e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);