video: tegra: mark a window's handle as unused when it is
Erik Gilling [Wed, 10 Nov 2010 23:29:35 +0000 (15:29 -0800)]
Change-Id: Iedc9a26f62e14c0263f0f315e589a672762ab31a
Signed-off-by: Erik Gilling <konkers@android.com>

drivers/video/tegra/fb.c

index 2a42ae5..ea768e1 100644 (file)
@@ -348,6 +348,7 @@ static int tegra_fb_set_windowattr(struct tegra_fb_info *tegra_fb,
 {
        if (flip_win->handle == NULL) {
                win->flags = 0;
+               win->cur_handle = NULL;
                return 0;
        }