staging: ozwpan: Fix bug where kfree is called twice.
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>
This commit is contained in:
Родитель
25958ce32c
Коммит
8176df8e95
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче