public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] fs: fat: error handling in get_contents()
@ 2019-09-12 17:19 Heinrich Schuchardt
  2019-09-12 17:19 ` [U-Boot] [PATCH 1/2] fs: fat: treat invalid FAT clusters as errors Heinrich Schuchardt
  2019-09-12 17:19 ` [U-Boot] [PATCH 2/2] fs: fat: get_contents() always returns -1 for errors Heinrich Schuchardt
  0 siblings, 2 replies; 6+ messages in thread
From: Heinrich Schuchardt @ 2019-09-12 17:19 UTC (permalink / raw)
  To: u-boot

If a FAT entry is corrupted, reading a file should always lead to an
error.

get_contents() should always return -1 when an error occurs.

Heinrich Schuchardt (2):
  fs: fat: treat invalid FAT clusters as errors
  fs: fat: get_contents() always returns -1 for errors

 fs/fat/fat.c | 32 +++++++++++++++++++++-----------
 1 file changed, 21 insertions(+), 11 deletions(-)

--
2.23.0

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

end of thread, other threads:[~2019-10-12 20:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-12 17:19 [U-Boot] [PATCH 0/2] fs: fat: error handling in get_contents() Heinrich Schuchardt
2019-09-12 17:19 ` [U-Boot] [PATCH 1/2] fs: fat: treat invalid FAT clusters as errors Heinrich Schuchardt
2019-09-18  4:37   ` AKASHI Takahiro
2019-10-12 20:28   ` Tom Rini
2019-09-12 17:19 ` [U-Boot] [PATCH 2/2] fs: fat: get_contents() always returns -1 for errors Heinrich Schuchardt
2019-10-12 20:28   ` Tom Rini

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