mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 22:22:51 -04:00
staging: slicoss: Fix possible reuse of freed memory in timer function
Do not call kfree() till timer function is finished. [This was found using grep. Compiled tested only] Signed-off-by: Kirill Tkhai <tkhai@yandex.ru> CC: Joe Perches <joe@perches.com> CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
aa6d5e4cde
commit
161737a619
@@ -2970,7 +2970,7 @@ static void slic_card_cleanup(struct sliccard *card)
|
||||
{
|
||||
if (card->loadtimerset) {
|
||||
card->loadtimerset = 0;
|
||||
del_timer(&card->loadtimer);
|
||||
del_timer_sync(&card->loadtimer);
|
||||
}
|
||||
|
||||
slic_debug_card_destroy(card);
|
||||
|
||||
Reference in New Issue
Block a user