https://github.com/torvalds/linux
Revision 7317c75e66fce0c9f82fbe6f72f7e5256b315422 authored by Jesse Barnes on 29 August 2011, 16:45:28 UTC, committed by Keith Packard on 16 December 2011, 16:49:58 UTC
This fixes a race where we may try to finish a page flip and decrement
the refcount even if our vblank_get failed and we ended up with a
spurious flip pending interrupt.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=34211.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent c0f372b
Raw File
Tip revision: 7317c75e66fce0c9f82fbe6f72f7e5256b315422 authored by Jesse Barnes on 29 August 2011, 16:45:28 UTC
drm/i915: don't set unpin_work if vblank_get fails
Tip revision: 7317c75
no-block.c
/* no-block.c: implementation of routines required for non-BLOCK configuration
 *
 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */

#include <linux/kernel.h>
#include <linux/fs.h>

static int no_blkdev_open(struct inode * inode, struct file * filp)
{
	return -ENODEV;
}

const struct file_operations def_blk_fops = {
	.open		= no_blkdev_open,
	.llseek		= noop_llseek,
};
back to top