Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7466a384 authored by David S. Miller's avatar David S. Miller
Browse files
parents a261af92 3a24934f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1027,12 +1027,12 @@ void i2400m_rx_edata(struct i2400m *i2400m, struct sk_buff *skb_rx,
		ro_sn = (reorder >> I2400M_RO_SN_SHIFT) & I2400M_RO_SN;

		spin_lock_irqsave(&i2400m->rx_lock, flags);
		roq = &i2400m->rx_roq[ro_cin];
		if (roq == NULL) {
		if (i2400m->rx_roq == NULL) {
			kfree_skb(skb);	/* rx_roq is already destroyed */
			spin_unlock_irqrestore(&i2400m->rx_lock, flags);
			goto error;
		}
		roq = &i2400m->rx_roq[ro_cin];
		kref_get(&i2400m->rx_roq_refcount);
		spin_unlock_irqrestore(&i2400m->rx_lock, flags);