Skip to content

Commit

Permalink
staging: ozwpan: Fix bug where kfree is called twice.
Browse files Browse the repository at this point in the history
Signed-off-by: Rupesh Gujare <rgujare@ozmodevices.com>
Signed-off-by: Chris Kelly <ckelly@ozmodevices.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Rupesh Gujare authored and Greg Kroah-Hartman committed Apr 26, 2012
1 parent dc890df commit 89f21cc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/ozwpan/ozpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 89f21cc

Please sign in to comment.