From: Tom Rini Date: Mon, 30 Jul 2018 16:01:42 -0400 Subject: [U-Boot] [U-Boot, v5] u-boot: remove driver lookup loop from env_save() In-Reply-To: <1532332867-6180-1-git-send-email-nicholas.faustini@azcomtech.com> References: <1532332867-6180-1-git-send-email-nicholas.faustini@azcomtech.com> Message-ID: <20180730200142.GU32145@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, Jul 23, 2018 at 10:01:07AM +0200, Nicholas Faustini wrote: > When called with ENVOP_SAVE, env_get_location() only returns the > gd->env_load_location variable without actually checking for > the environment location and priority. > > This behaviour causes env_save() to fall into an infinite loop when > the low-level drv->save() call fails. > > The env_save() function should not loop through the environment > location list but it should save the environment into the location > stored in gd->env_load_location by the last env_load() call. > > Signed-off-by: Nicholas Faustini > Reviewed-by: Simon Goldschmidt 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: