From: Baruch Siach Date: Mon, 5 Jan 2009 00:23:01 +0000 (-0800) Subject: enc28j60: fix RX buffer overflow X-Git-Tag: v2.6.29-rc1~502^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22692018b93f0782cda5a843cecfffda1854eb8d;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed