• Ye Li's avatar
    MLK-16369 eth: fec: Fix DM driver issue in recv · 058a6b25
    Ye Li authored
    
    
    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>
    058a6b25
fec_mxc.c 34.5 KB