summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-11-20 10:46:21 (GMT)
committerThomas Gleixner <tglx@linutronix.de>2009-11-20 10:55:26 (GMT)
commit34769945f7cd9ab470413ffe64426e3ad069f49e (patch)
treef937799941e6fde05166add1fe4f1712f05aa3a1 /kernel
parenta1afb6371bb5341057056194d1168753f6d77242 (diff)
downloadlinux-fsl-qoriq-34769945f7cd9ab470413ffe64426e3ad069f49e.tar.xz
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c
index 4e47f11..0832145 100644
--- a/kernel/irq/proc.c
+++ b/kernel/irq/proc.c
@@ -136,7 +136,7 @@ out:
static int default_affinity_open(struct inode *inode, struct file *file)
{
- return single_open(file, default_affinity_show, NULL);
+ return single_open(file, default_affinity_show, PDE(inode)->data);
}
static const struct file_operations default_affinity_proc_fops = {