From: Tom Rini Date: Tue, 9 Aug 2016 20:46:54 -0400 Subject: [U-Boot] efi_loader: disk: Sanitize exposed devices In-Reply-To: <1470401507-3644-1-git-send-email-agraf@suse.de> References: <1470401507-3644-1-git-send-email-agraf@suse.de> Message-ID: <20160810004654.GV4188@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 Fri, Aug 05, 2016 at 02:51:47PM +0200, Alexander Graf wrote: > When a target device is 0 bytes long, there's no point in exposing it to > the user. Let's just skip them. > > Also, when an offset is passed into the efi disk creation, we should > remove this offset from the total number of sectors we can handle. > > This patch fixes both things. > > Signed-off-by: Alexander Graf 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: Digital signature URL: