commit | 22692018b93f0782cda5a843cecfffda1854eb8d | [log] [tgz] |
---|---|---|
author | Baruch Siach <baruch@tkos.co.il> | Sun Jan 04 16:23:01 2009 -0800 |
committer | David S. Miller <davem@davemloft.net> | Sun Jan 04 16:23:01 2009 -0800 |
tree | b75537b4c063a28226d1810d0209b30375613eec | |
parent | fecc7036e73a71231045e03ff524b5f8bd892a84 [diff] |
enc28j60: fix RX buffer overflow The enc28j60 driver doesn't check whether the length of the packet as reported by the hardware fits into the preallocated buffer. When stressed, the hardware may report insanely large packets even tough the "Receive OK" bit is set. Fix this. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>