Skip to content

Commit 01d654d

Browse files
committed
Merge branch 'upstream-fixes' into upstream
2 parents 3b38f31 + 82464e6 commit 01d654d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/wireless/orinoco.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,6 @@ static void orinoco_rx_monitor(struct net_device *dev, u16 rxfid,
757757
if (datalen > IEEE80211_DATA_LEN + 12) {
758758
printk(KERN_DEBUG "%s: oversized monitor frame, "
759759
"data length = %d\n", dev->name, datalen);
760-
err = -EIO;
761760
stats->rx_length_errors++;
762761
goto update_stats;
763762
}
@@ -766,8 +765,7 @@ static void orinoco_rx_monitor(struct net_device *dev, u16 rxfid,
766765
if (!skb) {
767766
printk(KERN_WARNING "%s: Cannot allocate skb for monitor frame\n",
768767
dev->name);
769-
err = -ENOMEM;
770-
goto drop;
768+
goto update_stats;
771769
}
772770

773771
/* Copy the 802.11 header to the skb */

0 commit comments

Comments
 (0)