]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sh-mmcif: avoid oops on spurious interrupts (second try)
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 22 Aug 2012 06:49:47 +0000 (06:49 +0000)
committerChris Ball <cjb@laptop.org>
Tue, 4 Dec 2012 18:43:08 +0000 (13:43 -0500)
commit2524b5328be4088c753b4948773e0c6c7932f755
tree3e779c23314c9c1edc25b095875aca2463891211
parent037bd27f0d5b8550247fac6745f8aeb526e37862
mmc: sh-mmcif: avoid oops on spurious interrupts (second try)

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>
Tested-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Cc: stable@vger.kernel.org
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c