Skip to content
Commit 4903ec74 authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Carles Cufí
Browse files

drivers: ethernet: tc6: Check footer parity before updating struct oa_tc6



The parity of the received footer from data transfer (also including the
NORX) shall be checked before members of struct tc6 are updated.

This prevents from updating the driver's crucial metadata (i.e. struct
oa_tc6) with malformed values and informs the upper layers of the driver
that error has been detected.

Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
parent d2e864f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment