]> git.baikalelectronics.ru Git - kernel.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>
Thu, 6 Dec 2012 18:54:35 +0000 (13:54 -0500)
commit4f1d480ab60193be75a055bfd2221f3af9e4d202
tree8e1dfa1c86e2221997e4918203615782404a663c
parent172de7edb8a5ba20b6e84be1ea60739d551dbd5a
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