diff options
Diffstat (limited to 'drivers/net/usb/mcs7830.c')
-rw-r--r-- | drivers/net/usb/mcs7830.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/usb/mcs7830.c b/drivers/net/usb/mcs7830.c index f54637828574..82d844a8ebd0 100644 --- a/drivers/net/usb/mcs7830.c +++ b/drivers/net/usb/mcs7830.c | |||
@@ -36,14 +36,12 @@ | |||
36 | * GNU General Public License for more details. | 36 | * GNU General Public License for more details. |
37 | * | 37 | * |
38 | * You should have received a copy of the GNU General Public License | 38 | * You should have received a copy of the GNU General Public License |
39 | * along with this program; if not, write to the Free Software | 39 | * along with this program; if not, see <http://www.gnu.org/licenses/>. |
40 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
41 | */ | 40 | */ |
42 | 41 | ||
43 | #include <linux/crc32.h> | 42 | #include <linux/crc32.h> |
44 | #include <linux/etherdevice.h> | 43 | #include <linux/etherdevice.h> |
45 | #include <linux/ethtool.h> | 44 | #include <linux/ethtool.h> |
46 | #include <linux/init.h> | ||
47 | #include <linux/mii.h> | 45 | #include <linux/mii.h> |
48 | #include <linux/module.h> | 46 | #include <linux/module.h> |
49 | #include <linux/netdevice.h> | 47 | #include <linux/netdevice.h> |
@@ -528,8 +526,9 @@ static int mcs7830_rx_fixup(struct usbnet *dev, struct sk_buff *skb) | |||
528 | { | 526 | { |
529 | u8 status; | 527 | u8 status; |
530 | 528 | ||
531 | if (skb->len == 0) { | 529 | /* This check is no longer done by usbnet */ |
532 | dev_err(&dev->udev->dev, "unexpected empty rx frame\n"); | 530 | if (skb->len < dev->net->hard_header_len) { |
531 | dev_err(&dev->udev->dev, "unexpected tiny rx frame\n"); | ||
533 | return 0; | 532 | return 0; |
534 | } | 533 | } |
535 | 534 | ||