]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sh-mmcif: avoid oops on spurious interrupts
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 18 Sep 2012 06:42:42 +0000 (06:42 +0000)
committerChris Ball <cjb@laptop.org>
Fri, 21 Sep 2012 02:42:48 +0000 (10:42 +0800)
commit416dac0f0c6caad98ffc4224517157b8b5192ea3
tree067c0cdf2e58bc59e157b23f9bffe5d7ea1d2bb6
parent6b6588c9270d4be3d836b5cfd6889faafc0fd9b2
mmc: sh-mmcif: avoid oops on spurious interrupts

On some systems, e.g., kzm9g, MMCIF interfaces can produce spurious
interrupts without any active request. To prevent the Oops, that results
in such cases, don't dereference the mmc request pointer until we make
sure, that we are indeed processing such a request.

Reported-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c