[U-Boot] [PATCHv6 09/28] net: core: Sanitize get/set operations for enetaddr

Joe Hershberger joe.hershberger at ni.com
Tue May 30 21:07:15 UTC 2017


On Mon, May 15, 2017 at 3:02 AM, Olliver Schinagl <oliver at schinagl.nl> wrote:
> In the current net stack, we have a few functions to get and set
> the "ethaddr" and "ethNaddr" environment variables, which use magic
> values to get and set these environment variables. Remove the magicness
> of the buffer by defining it proper and also check the input for its
> length.
>
> Additionally use the define in fdt parser where the ethaddr variables
> are also used.
>
> Signed-off-by: Olliver Schinagl <oliver at schinagl.nl>

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


More information about the U-Boot mailing list