public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Failure in ubifsmount
@ 2010-04-20 14:52 Stefano Babic
  2010-04-21  7:15 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: Stefano Babic @ 2010-04-20 14:52 UTC (permalink / raw)
  To: u-boot

Hi,

it seems I have found an unitialized variable when I run ubifsmount on
an ARM board.

The problem arises during the sget() function when the "type" of
filesystem is added to the superblock list, at the following line:

	list_add(&s->s_instances, &type->fs_supers);

I have checked that fs_supers has both pointers prev and next set to
zero. The pointer type is only a reference to the static structure
ubifs_fs_type, inside the same file, and the fs_supers is not
initialized at all.
Initializing the list with INIT_LIST_HEAD seems solving the problem,
after that ubifsmount works and I can load files with ubifsload.
However, I am not sure if this is enough (else I had sent a patch...).

Regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

end of thread, other threads:[~2010-04-21  7:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-20 14:52 [U-Boot] Failure in ubifsmount Stefano Babic
2010-04-21  7:15 ` Stefan Roese

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