mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 03:33:58 +08:00
staging: sbe-2t3e3: Fix possible reuse of freed memory in timer function
Do not call kfree() till timer function is finished. [This was found using grep. Compilation tested only] Signed-off-by: Kirill Tkhai <tkhai@yandex.ru> CC: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f578b5d33e
commit
81291dd948
@ -122,7 +122,7 @@ static void t3e3_remove_card(struct pci_dev *pdev)
|
||||
struct channel *channel0 = pci_get_drvdata(pdev);
|
||||
struct card *card = channel0->card;
|
||||
|
||||
del_timer(&card->timer);
|
||||
del_timer_sync(&card->timer);
|
||||
if (has_two_ports(channel0->pdev)) {
|
||||
t3e3_remove_channel(&card->channels[1]);
|
||||
pci_dev_put(card->channels[1].pdev);
|
||||
|
Loading…
Reference in New Issue
Block a user