|
@@ -3508,7 +3508,7 @@ static void fbcon_exit(void)
|
|
softback_buf = 0UL;
|
|
softback_buf = 0UL;
|
|
|
|
|
|
for (i = 0; i < FB_MAX; i++) {
|
|
for (i = 0; i < FB_MAX; i++) {
|
|
- int pending;
|
|
|
|
|
|
+ int pending = 0;
|
|
|
|
|
|
mapped = 0;
|
|
mapped = 0;
|
|
info = registered_fb[i];
|
|
info = registered_fb[i];
|
|
@@ -3516,7 +3516,8 @@ static void fbcon_exit(void)
|
|
if (info == NULL)
|
|
if (info == NULL)
|
|
continue;
|
|
continue;
|
|
|
|
|
|
- pending = cancel_work_sync(&info->queue);
|
|
|
|
|
|
+ if (info->queue.func)
|
|
|
|
+ pending = cancel_work_sync(&info->queue);
|
|
DPRINTK("fbcon: %s pending work\n", (pending ? "canceled" :
|
|
DPRINTK("fbcon: %s pending work\n", (pending ? "canceled" :
|
|
"no"));
|
|
"no"));
|
|
|
|
|