video/fbdev: fix defio's fsync
fb_deferred_io_fsync() returns the value of schedule_delayed_work() as an error code, but schedule_delayed_work() does not return an error. It returns true/false depending on whether the work was already queued. Fix this by ignoring the return value of schedule_delayed_work(). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: stable@vger.kernel.org
This commit is contained in:
Родитель
92b004d1aa
Коммит
30ea9c5218
|
@ -83,9 +83,10 @@ int fb_deferred_io_fsync(struct file *file, loff_t start, loff_t end, int datasy
|
||||||
cancel_delayed_work_sync(&info->deferred_work);
|
cancel_delayed_work_sync(&info->deferred_work);
|
||||||
|
|
||||||
/* Run it immediately */
|
/* Run it immediately */
|
||||||
err = schedule_delayed_work(&info->deferred_work, 0);
|
schedule_delayed_work(&info->deferred_work, 0);
|
||||||
mutex_unlock(&inode->i_mutex);
|
mutex_unlock(&inode->i_mutex);
|
||||||
return err;
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(fb_deferred_io_fsync);
|
EXPORT_SYMBOL_GPL(fb_deferred_io_fsync);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче