From: Tom Rini Date: Fri, 3 May 2019 14:21:57 -0400 Subject: [U-Boot] [PATCH] fs: btrfs: fix btrfs methods return values on failure In-Reply-To: <20190502132843.12298-1-marek.behun@nic.cz> References: <20190502132843.12298-1-marek.behun@nic.cz> Message-ID: <20190503182157.GV31207@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Thu, May 02, 2019 at 03:28:43PM +0200, Marek BehĂșn wrote: > The btrfs implementation methods .ls(), .size() and .read() returns 1 on > failure, but the command handlers expect values <0 on failure. > > For example if given a nonexistent path, the load command currently > returns success, and hush scripting does not work. > > Fix this by setting return values of these methods to -1 instead of 1 on > failure. > > Signed-off-by: Marek BehĂșn Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: