[U-Boot] [PATCH] disk: initialize name/part fields when returning a whole disk

Tom Rini trini at ti.com
Sat Oct 20 19:40:11 CEST 2012


On Wed, Oct 10, 2012 at 11:57:51AM -0600, Stephen Warren wrote:

> From: Stephen Warren <swarren at nvidia.com>
> 
> 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 <benoit.thebaudeau at advansee.com>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20121020/f5ebe269/attachment.pgp>


More information about the U-Boot mailing list