public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Massimiliano Galanti <massiblue@libero.it>
To: linux-mtd@lists.infradead.org
Subject: checking write_cached_data return status inside _release and _flush?
Date: Fri, 07 Apr 2006 20:03:13 +0200	[thread overview]
Message-ID: <4436A961.7050209@libero.it> (raw)

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
--------------------------

             reply	other threads:[~2006-04-07 17:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-07 18:03 Massimiliano Galanti [this message]
2006-04-10 10:02 ` checking write_cached_data return status inside _release and _flush? Jörn Engel
     [not found] <IXI8OW$25AAA6D68166E4BF09ED12F6E5747466@libero.it>
2006-04-10 12:24 ` Jörn Engel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4436A961.7050209@libero.it \
    --to=massiblue@libero.it \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox