From: Baruch Siach Date: Mon, 5 Jan 2009 00:23:01 +0000 (-0800) Subject: enc28j60: fix RX buffer overflow X-Git-Tag: v2.6.27.36~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52ccbcd1bcbed712bb586c3c17164fe326e89f1a;p=pandora-kernel.git enc28j60: fix RX buffer overflow commit 22692018b93f0782cda5a843cecfffda1854eb8d upstream. 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed