Skip to content
Commit 323db1e3 authored by Piotr Mienkowski's avatar Piotr Mienkowski Committed by Jukka Rissanen
Browse files

drivers: eth_sam_gmac: Make sure not to leak net_buf in RX



Check net_recv_data() return value, if it returns an error release
the net_buf. Based on a fix in eth_mcux driver.

Change-Id: I44ca5fd8dfb7175620b7e8850a68443100039db6
Signed-off-by: default avatarPiotr Mienkowski <piotr.mienkowski@gmail.com>
parent 000539ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment