From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Dyer Date: Sat, 8 Jan 2005 14:32:39 -0600 Subject: [U-Boot-Users] fs/ext2/ext2fs.c bug and patch Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi all, In the course of getting ext2 support to work on our platform I noticed that the ext2load command calls ext2fs_open() and uses a return code of less than 0 as an error indication, otherwise the return value is a length. ext2fs_open() uses 0 to indicate a returned error, so the ext2load command doesn't properly flag errors coming back from the filesystem code. The ext2load command is the only caller of ext2fs_open() that I could see. The attached patch changes the return codes from ext2fs_open() to be negative on an error. -- Hardware, n.: The parts of a computer system that can be kicked. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: uboot-ext2fs_open-return.txt Url: http://lists.denx.de/pipermail/u-boot/attachments/20050108/0700e5ca/attachment.txt