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

Marek Vasut marex at denx.de
Wed Feb 24 19:16:13 CET 2016


On 02/22/2016 05:56 PM, Stephen Warren wrote:
> On 02/12/2016 02:16 PM, Marek Vasut wrote:
>> On 02/12/2016 10:15 PM, Joe Hershberger wrote:
>>> 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>
>>>
>> Applied to u-boot-usb/master, thanks.
> 
> Thanks. Any chance of a pull request into mainline? This issue is
> causing lots of crashing on one of the systems in my test setup, which
> potentially masks other problems.

Done, sorry for the delay.


More information about the U-Boot mailing list