RE: [PATCH net-next v2] net: enetc: use get/put_unaligned helpers for MAC address handling

From: Claudiu Manoil
Date: Fri Jun 04 2021 - 09:48:04 EST


> -----Original Message-----
> From: Michael Walle <michael@xxxxxxxx>
> Sent: Friday, June 4, 2021 4:42 PM
[...]
> Subject: [PATCH net-next v2] net: enetc: use get/put_unaligned helpers for
> MAC address handling
>
> The supplied buffer for the MAC address might not be aligned. Thus
> doing a 32bit (or 16bit) access could be on an unaligned address. For
> now, enetc is only used on aarch64 which can do unaligned accesses, thus
> there is no error. In any case, be correct and use the get/put_unaligned
> helpers.
>
> Signed-off-by: Michael Walle <michael@xxxxxxxx>

Reviewed-by: Claudiu Manoil <claudiu.manoil@xxxxxxx>