summaryrefslogtreecommitdiff
path: root/include/netdev.h
diff options
context:
space:
mode:
authorYe Li <[email protected]>2018-03-28 20:54:11 +0800
committerJoe Hershberger <[email protected]>2018-04-13 15:47:37 -0500
commit07763ac9282f8d72c0f1e7d6c863a107997cbc3e (patch)
tree89fb25c9691ced06841a617bd41a80df5614c735 /include/netdev.h
parent0a85f024c5e84ccaf3b908f0b1d381f5ecf89602 (diff)
net: fec_mxc: 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: Ye Li <[email protected]> Reviewed-by: Peng Fan <[email protected]> Acked-by: Joe Hershberger <[email protected]>
Diffstat (limited to 'include/netdev.h')
0 files changed, 0 insertions, 0 deletions