Skip to content
Snippets Groups Projects
Commit f7852257 authored by Ye Li's avatar Ye Li
Browse files

MLK-16369 eth: fec: Fix DM driver issue in recv


When using ethernet DM driver, the recv interface has a change with non-DM
interface, that driver needs to set the packet pointer and provide it to upper
layer to process.
In fec driver, the fecmxc_recv functions does not handle the packet pointer parameter.
This may cause crash in upper layer processing because the packet pointer is not set.

This patch allocates a buffer for the packet pointer and free it through free_pkt interface.

Signed-off-by: default avatarYe Li <ye.li@nxp.com>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
(cherry picked from commit 3795e87172103f383569e1710d8feefd46fcccf7)
parent cf0bcd52
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment