diff options
author | Kirill Tkhai <tkhai@yandex.ru> | 2014-02-10 22:36:23 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-12 00:37:27 +0400 |
commit | 161737a619961b1a5bfe9f32704245b686d30792 (patch) | |
tree | 0912ee5605528a4366c855ba5e4cd5f9a0fc471b | |
parent | aa6d5e4cde9cb530238807c487bd59c26ffcf8cb (diff) | |
download | linux-161737a619961b1a5bfe9f32704245b686d30792.tar.xz |
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>
-rw-r--r-- | drivers/staging/slicoss/slicoss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 1426ca49bfe8..e0de4979e1cb 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -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); |