Skip to content

Commit

Permalink
video: deferred io cleanup
Browse files Browse the repository at this point in the history
Make sure the mmap callback is set to NULL in the deferred io
cleanup function. This way we can enable and disable deferred
io on the fly.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Jaya Kumar <jayakumar.lkml@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Dec 22, 2008
1 parent 87884bd commit 6e1038a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/video/fb_defio.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ void fb_deferred_io_cleanup(struct fb_info *info)
page = vmalloc_to_page(screen_base + i);
page->mapping = NULL;
}

info->fbops->fb_mmap = NULL;
mutex_destroy(&fbdefio->lock);
}
EXPORT_SYMBOL_GPL(fb_deferred_io_cleanup);

Expand Down

0 comments on commit 6e1038a

Please sign in to comment.