genirq: Fix spurious irq seqfile conversion
authorThomas Gleixner <tglx@linutronix.de>
Fri, 20 Nov 2009 10:46:21 +0000 (11:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 20 Nov 2009 10:55:26 +0000 (11:55 +0100)
commit34769945f7cd9ab470413ffe64426e3ad069f49e
treef937799941e6fde05166add1fe4f1712f05aa3a1
parenta1afb6371bb5341057056194d1168753f6d77242
genirq: Fix spurious irq seqfile conversion

single_open data argument must be PDE(inode)->data instead of NULL
otherwise seq_file->private is always NULL and we always read the
spurious data of irq 0.

Reported-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/proc.c