From: Michael Schmitz Date: Sat, 1 Feb 2014 00:48:13 +0000 (+1300) Subject: m68k/atari - ide: do not register interrupt if host->get_lock is set X-Git-Tag: omap-for-v3.17/fixes-against-rc2~246^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a259d5320537576c0744238f01ca6e75ad776674;p=pandora-kernel.git m68k/atari - ide: do not register interrupt if host->get_lock is set On m68k, host->get_lock is used to both lock and register the interrupt that the IDE host shares with other device drivers. Registering the IDE interrupt handler in ide-probe.c results in duplicating the interrupt registered (once via host->get lock, and also via init_irq()), and may result in IDE accepting interrupts even when another driver has locked the interrupt hardware. This opens the whole locking scheme up to races. host->get_lock is set on m68k only, so other drivers' behaviour is not changed. Signed-off-by: Michael Schmitz Cc: Geert Uytterhoeven Cc: David S. Miller Cc: linux-ide@vger.kernel.org Signed-off-by: David S. Miller --- Reading git-diff-tree failed