public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* checking write_cached_data return status inside _release and _flush?
@ 2006-04-07 18:03 Massimiliano Galanti
  2006-04-10 10:02 ` Jörn Engel
  0 siblings, 1 reply; 3+ messages in thread
From: Massimiliano Galanti @ 2006-04-07 18:03 UTC (permalink / raw)
  To: linux-mtd

hi!

i experienced some corruption of data on flash memories i am using, and
discovered that this is related to these functions in mtdblock.c:

	static int mtdblock_release(struct mtd_blktrans_dev *mbd)
	static int mtdblock_flush(struct mtd_blktrans_dev *dev)

not checking the return value of the function:

         write_cached_data(mtdblk)

i fixed that by checking the return value inside a while cycle but is 
there any particular reason the original code is written that way?

Thank you.

-- 
Massimiliano Galanti

-IM-----------------------
MSN:  viperzed@hotmail.com
Yahoo: massimilianogalanti
ICQ:             227544335
Skype: massimilianogalanti
--------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <IXI8OW$25AAA6D68166E4BF09ED12F6E5747466@libero.it>]

end of thread, other threads:[~2006-04-10 12:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-07 18:03 checking write_cached_data return status inside _release and _flush? Massimiliano Galanti
2006-04-10 10:02 ` Jörn Engel
     [not found] <IXI8OW$25AAA6D68166E4BF09ED12F6E5747466@libero.it>
2006-04-10 12:24 ` Jörn Engel

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