]> git.baikalelectronics.ru Git - kernel.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>
Wed, 3 Oct 2012 14:05:28 +0000 (10:05 -0400)
commit8ba92a5da35997ba9f70cf58e6dd1326f7f6ef2a
tree71faa28ff4aea73dcb473a120ed4eecfd7368998
parent6c14ebb7245b174eb91d9b01f91c18dc4c7910c6
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