Commit 34769945 authored by Thomas Gleixner's avatar Thomas Gleixner

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: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent a1afb637
...@@ -136,7 +136,7 @@ static ssize_t default_affinity_write(struct file *file, ...@@ -136,7 +136,7 @@ static ssize_t default_affinity_write(struct file *file,
static int default_affinity_open(struct inode *inode, struct file *file) 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 = { static const struct file_operations default_affinity_proc_fops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment