[U-Boot] [PATCH] usb: eth: fix memalign() parameter order

Joe Hershberger joe.hershberger at gmail.com
Fri Feb 12 22:15:51 CET 2016


On Fri, Feb 12, 2016 at 2:56 PM, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> The alignment and size were swapped, leading to malloc heap corruption.
>
> On my system, this sometimes caused U-Boot to crash during or after
> certain USB Ethernet operations.
>
> Fixes: c8c2797c3810 ("dm: usb: eth: Support driver model with USB Ethernet")
> Signed-off-by: Stephen Warren <swarren at nvidia.com>

Yikes.

Reviewed-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list