diff options
| -rw-r--r-- | drivers/video/console/fbcon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 84f842331dfa..7ccc967831f0 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c | |||
| @@ -3508,7 +3508,7 @@ static void fbcon_exit(void) | |||
| 3508 | softback_buf = 0UL; | 3508 | softback_buf = 0UL; |
| 3509 | 3509 | ||
| 3510 | for (i = 0; i < FB_MAX; i++) { | 3510 | for (i = 0; i < FB_MAX; i++) { |
| 3511 | int pending; | 3511 | int pending = 0; |
| 3512 | 3512 | ||
| 3513 | mapped = 0; | 3513 | mapped = 0; |
| 3514 | info = registered_fb[i]; | 3514 | info = registered_fb[i]; |
| @@ -3516,7 +3516,8 @@ static void fbcon_exit(void) | |||
| 3516 | if (info == NULL) | 3516 | if (info == NULL) |
| 3517 | continue; | 3517 | continue; |
| 3518 | 3518 | ||
| 3519 | pending = cancel_work_sync(&info->queue); | 3519 | if (info->queue.func) |
| 3520 | pending = cancel_work_sync(&info->queue); | ||
| 3520 | DPRINTK("fbcon: %s pending work\n", (pending ? "canceled" : | 3521 | DPRINTK("fbcon: %s pending work\n", (pending ? "canceled" : |
| 3521 | "no")); | 3522 | "no")); |
| 3522 | 3523 | ||
