| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * (c) Copyright 2002-2010, Ralink Technology, Inc. |
|---|
| 3 | 4 | * Copyright (C) 2014 Felix Fietkau <nbd@openwrt.org> |
|---|
| 4 | 5 | * Copyright (C) 2015 Jakub Kicinski <kubakici@wp.pl> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 |
|---|
| 8 | | - * as published by the Free Software Foundation |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | | - * GNU General Public License for more details. |
|---|
| 14 | 6 | */ |
|---|
| 15 | 7 | |
|---|
| 16 | 8 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 124 | 116 | int sent, ret; |
|---|
| 125 | 117 | u8 seq = 0; |
|---|
| 126 | 118 | |
|---|
| 127 | | - if (test_bit(MT7601U_STATE_REMOVED, &dev->state)) |
|---|
| 119 | + if (test_bit(MT7601U_STATE_REMOVED, &dev->state)) { |
|---|
| 120 | + consume_skb(skb); |
|---|
| 128 | 121 | return 0; |
|---|
| 122 | + } |
|---|
| 129 | 123 | |
|---|
| 130 | 124 | mutex_lock(&dev->mcu.mutex); |
|---|
| 131 | 125 | |
|---|