linux/drivers/staging/fsl-dpaa2
Ioana Radulescu 6a9bbe53db staging: fsl-dpaa2/eth: Fix incorrect kfree
Use netdev_alloc_frag() instead of kmalloc to allocate space for
the S/G table of egress multi-buffer frames.

This fixes a bug where an unaligned pointer received from the
allocator would be overwritten with the 64B aligned value,
leading to a wrong address being later passed to kfree.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-19 19:46:51 +01:00
..
ethernet staging: fsl-dpaa2/eth: Fix incorrect kfree 2018-03-19 19:46:51 +01:00
ethsw staging: fsl-dpaa2/ethsw: Add TODO 2018-03-14 17:36:10 +01:00
Kconfig staging: fsl-dpaa2/ethsw: Add APIs for DPSW object 2018-03-14 17:36:09 +01:00
Makefile staging: fsl-dpaa2/ethsw: Add APIs for DPSW object 2018-03-14 17:36:09 +01:00