commit | 583e6361414903c5206258a30e5bd88cb03c0254 | [log] [tgz] |
---|---|---|
author | Aaro Koskinen <aaro.koskinen@nokia.com> | Wed Mar 27 22:35:35 2019 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sun Mar 31 14:00:58 2019 -0700 |
tree | 5ec09545ea7f23e777609b40c7e3593408deb0c5 | |
parent | 288ac524cf70a8e7ed851a61ed2a9744039dae8d [diff] |
net: stmmac: use correct DMA buffer size in the RX descriptor We always program the maximum DMA buffer size into the receive descriptor, although the allocated size may be less. E.g. with the default MTU size we allocate only 1536 bytes. If somebody sends us a bigger frame, then memory may get corrupted. Fix by using exact buffer sizes. Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>