From: Ben Hutchings Date: Sat, 26 Sep 2015 11:23:56 +0000 (+0100) Subject: genirq: Fix race in register_irq_proc() X-Git-Tag: omap-for-v4.3/fixes-rc5~43^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95c2b17534654829db428f11bcf4297c059a2a7e;p=pandora-kernel.git genirq: Fix race in register_irq_proc() Per-IRQ directories in procfs are created only when a handler is first added to the irqdesc, not when the irqdesc is created. In the case of a shared IRQ, multiple tasks can race to create a directory. This race condition seems to have been present forever, but is easier to hit with async probing. Signed-off-by: Ben Hutchings Link: http://lkml.kernel.org/r/1443266636.2004.2.camel@decadent.org.uk Signed-off-by: Thomas Gleixner Cc: stable@vger.kernel.org --- Reading git-diff-tree failed