mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
kref: Fix typo in kref documentation
container_of() should refer to the struct created in the example. Signed-off-by: Javi Merino <[email protected]> Cc: Randy Dunlap <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
f1a304e794
commit
d5c97c1099
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue