mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
a1afb6371b
commit
34769945f7
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue