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

Commit 89f21cc0 authored by Rupesh Gujare's avatar Rupesh Gujare Committed by Greg Kroah-Hartman
Browse files

staging: ozwpan: Fix bug where kfree is called twice.

parent dc890df0
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -383,8 +383,6 @@ static void oz_tx_frame_free(struct oz_pd *pd, struct oz_tx_frame *f)
		pd->tx_pool = &f->link;
		pd->tx_pool_count++;
		f = 0;
	} else {
		kfree(f);
	}
	spin_unlock_bh(&pd->tx_frame_lock);
	if (f)