irq: Remove smp_affinity_list when unregister irq proc
authorYinghai Lu <yinghai@kernel.org>
Thu, 26 May 2011 05:09:40 +0000 (22:09 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 26 May 2011 11:15:28 +0000 (13:15 +0200)
commitdef945eeb920b94e710574454043f080831aefe5
tree3ab084b62973e172b98ab731b80b19666eac30e7
parent4db70f73e56961b9bcdfd0c36c62847a18b7dbb5
irq: Remove smp_affinity_list when unregister irq proc

commit 4b06042(bitmap, irq: add smp_affinity_list interface to
/proc/irq) causes the following warning:

[  274.239500] WARNING: at fs/proc/generic.c:850 remove_proc_entry+0x24c/0x27a()
[  274.251761] remove_proc_entry: removing non-empty directory 'irq/184',
            leaking at least 'smp_affinity_list'

Remove the new file in the exit path.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Mike Travis <travis@sgi.com>
Link: http://lkml.kernel.org/r/4DDDE094.6050505@kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/proc.c