On Sat, 5 Mar 2011 19:12:10 +0000 Javi Merino wrote: > container_of() should refer to the struct created in the example. > --- > Documentation/kref.txt | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/Documentation/kref.txt b/Documentation/kref.txt > index ae203f9..48ba715 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); > -- Hi, Please add your Signed-off-by: as specified in Documentation/SubmittingPatches and also Cc: Greg KH <greg@xxxxxxxxx> thanks, --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html