diff options
Diffstat (limited to 'drivers/net/wimax')
-rw-r--r-- | drivers/net/wimax/i2400m/rx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wimax/i2400m/rx.c b/drivers/net/wimax/i2400m/rx.c index c835ae8b89ce..6cd12d64fc7a 100644 --- a/drivers/net/wimax/i2400m/rx.c +++ b/drivers/net/wimax/i2400m/rx.c | |||
@@ -1033,12 +1033,12 @@ void i2400m_rx_edata(struct i2400m *i2400m, struct sk_buff *skb_rx, | |||
1033 | ro_sn = (reorder >> I2400M_RO_SN_SHIFT) & I2400M_RO_SN; | 1033 | ro_sn = (reorder >> I2400M_RO_SN_SHIFT) & I2400M_RO_SN; |
1034 | 1034 | ||
1035 | spin_lock_irqsave(&i2400m->rx_lock, flags); | 1035 | spin_lock_irqsave(&i2400m->rx_lock, flags); |
1036 | roq = &i2400m->rx_roq[ro_cin]; | 1036 | if (i2400m->rx_roq == NULL) { |
1037 | if (roq == NULL) { | ||
1038 | kfree_skb(skb); /* rx_roq is already destroyed */ | 1037 | kfree_skb(skb); /* rx_roq is already destroyed */ |
1039 | spin_unlock_irqrestore(&i2400m->rx_lock, flags); | 1038 | spin_unlock_irqrestore(&i2400m->rx_lock, flags); |
1040 | goto error; | 1039 | goto error; |
1041 | } | 1040 | } |
1041 | roq = &i2400m->rx_roq[ro_cin]; | ||
1042 | kref_get(&i2400m->rx_roq_refcount); | 1042 | kref_get(&i2400m->rx_roq_refcount); |
1043 | spin_unlock_irqrestore(&i2400m->rx_lock, flags); | 1043 | spin_unlock_irqrestore(&i2400m->rx_lock, flags); |
1044 | 1044 | ||