From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 20 Oct 2012 10:40:40 -0700 Subject: [U-Boot] disk: initialize name/part fields when returning a whole disk In-Reply-To: <1349891871-31062-1-git-send-email-swarren@wwwdotorg.org> References: <1349891871-31062-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <20121020174040.GC5854@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 Wed, Oct 10, 2012 at 07:57:51AM -0000, Stephen Warren wrote: > From: Stephen Warren > > When get_device_and_partition() finds a disk without a partition table, > under some conditions, it "returns" a disk_partition_t that describes > the entire raw disk. Make sure to initialize all fields in the partition > descriptor in that case. > > The value chosen for name is just some arbitrary descriptive string. > > The value chosen for info matches the check at the end of > get_device_and_partition(). However, it's probably not that important; > it's not obvious that the value is really used. > > Reported-by: Beno??t Th??baudeau > Signed-off-by: Stephen Warren > Reviewed-by: Beno??t Th??baudeau Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: