diff options
author | Kirill Tkhai <tkhai@yandex.ru> | 2014-02-10 18:36:23 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-11 20:37:27 (GMT) |
commit | 161737a619961b1a5bfe9f32704245b686d30792 (patch) | |
tree | 0912ee5605528a4366c855ba5e4cd5f9a0fc471b /drivers/staging/slicoss/slicoss.c | |
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>
Diffstat (limited to 'drivers/staging/slicoss/slicoss.c')
-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 1426ca4..e0de497 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); |