From: Thomas Gleixner Date: Fri, 20 Nov 2009 10:46:21 +0000 (+0100) Subject: genirq: Fix spurious irq seqfile conversion X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=34769945f7cd9ab470413ffe64426e3ad069f49e;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: Thomas Gleixner --- 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 = {