diff options
-rw-r--r-- | drivers/video/console/fbcon.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 2e471c22abf5..f8a79fca4a22 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c | |||
@@ -372,8 +372,12 @@ static void fb_flashcursor(struct work_struct *work) | |||
372 | struct vc_data *vc = NULL; | 372 | struct vc_data *vc = NULL; |
373 | int c; | 373 | int c; |
374 | int mode; | 374 | int mode; |
375 | int ret; | ||
376 | |||
377 | ret = console_trylock(); | ||
378 | if (ret == 0) | ||
379 | return; | ||
375 | 380 | ||
376 | console_lock(); | ||
377 | if (ops && ops->currcon != -1) | 381 | if (ops && ops->currcon != -1) |
378 | vc = vc_cons[ops->currcon].d; | 382 | vc = vc_cons[ops->currcon].d; |
379 | 383 | ||