]> 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)
commit0be3acd68b0ff8bbdacd8946cf55fd659971ee1d
tree71faa28ff4aea73dcb473a120ed4eecfd7368998
parentf296daf5f1e1223c5f9c45680e3e1fc07559075a
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