diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-11-20 11:46:21 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-11-20 11:55:26 +0100 |
commit | 34769945f7cd9ab470413ffe64426e3ad069f49e (patch) | |
tree | f937799941e6fde05166add1fe4f1712f05aa3a1 /kernel/irq | |
parent | genirq: switch /proc/irq/*/spurious to seq_file (diff) | |
download | linux-34769945f7cd9ab470413ffe64426e3ad069f49e.tar.xz linux-34769945f7cd9ab470413ffe64426e3ad069f49e.zip |
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/irq')
-rw-r--r-- | kernel/irq/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index 4e47f11da6a7..0832145fea97 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 = { |