From: Tom Rini Date: Sat, 23 Jan 2021 12:45:57 -0500 Subject: [PATCH] tools: env: return error if ubi_update_start() fails In-Reply-To: <20201130111132.2870658-1-martin@geanix.com> References: <20201130111132.2870658-1-martin@geanix.com> Message-ID: <20210123174557.GM9782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Nov 30, 2020 at 12:11:32PM +0100, Martin Hundeb?ll wrote: > The UBI_IOCVOLUP ioctl can fail if exclusive access to the volume isn't > obtained. If this happens, the flush operation doesn't return error, > leaving the caller without knowledge of missing flush. > > Fix this by forwarding the error (-1) from ubi_update_start(). > > Fixes: 34255b92e6e ("tools: env: Add support for direct read/write UBI volumes") > Signed-off-by: Martin Hundeb?ll Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: