|
@@ -372,8 +372,15 @@ static void fb_flashcursor(struct work_struct *work)
|
|
struct vc_data *vc = NULL;
|
|
struct vc_data *vc = NULL;
|
|
int c;
|
|
int c;
|
|
int mode;
|
|
int mode;
|
|
|
|
+ int ret;
|
|
|
|
+
|
|
|
|
+ /* FIXME: we should sort out the unbind locking instead */
|
|
|
|
+ /* instead we just fail to flash the cursor if we can't get
|
|
|
|
+ * the lock instead of blocking fbcon deinit */
|
|
|
|
+ ret = console_trylock();
|
|
|
|
+ if (ret == 0)
|
|
|
|
+ return;
|
|
|
|
|
|
- console_lock();
|
|
|
|
if (ops && ops->currcon != -1)
|
|
if (ops && ops->currcon != -1)
|
|
vc = vc_cons[ops->currcon].d;
|
|
vc = vc_cons[ops->currcon].d;
|
|
|
|
|