public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* question about fs/ubifs/orphan.c
@ 2012-07-08  9:21 Julia Lawall
  2012-07-08  9:22 ` Julia Lawall
  2012-07-08 12:40 ` Artem Bityutskiy
  0 siblings, 2 replies; 7+ messages in thread
From: Julia Lawall @ 2012-07-08  9:21 UTC (permalink / raw)
  To: dedekind1, adrian.hunter, linux-mtd

The function ubifs_orphan_start_commit contains the code:

         list_for_each_entry(orphan, &c->orph_new, new_list) {
                 ubifs_assert(orphan->new);
                 orphan->new = 0;
                 *last = orphan;
                 last = &orphan->cnext;
         }
         *last = orphan->cnext;

After list_for_each_entry, orphan is just an address at an offset from the 
list head, not a pointer to a real structure.  So it does not seem correct 
to access its cnext field.

julia

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-07-09  7:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-08  9:21 question about fs/ubifs/orphan.c Julia Lawall
2012-07-08  9:22 ` Julia Lawall
2012-07-09  6:46   ` Adrian Hunter
2012-07-09  7:21     ` Julia Lawall
2012-07-08 12:40 ` Artem Bityutskiy
2012-07-08 13:06   ` Julia Lawall
2012-07-09  6:47   ` Adrian Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox