summaryrefslogtreecommitdiffstats
path: root/lib/gcd.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@nokia.com>2009-09-23 01:44:58 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-23 16:39:35 +0200
commit4dffd7a251172d78a157ff45ec1207012f44774a (patch)
tree35db86950a7c43ba4b69dc64220c57d10e15f693 /lib/gcd.c
parentomap_hsmmc: cater for weird CMD6 behaviour (diff)
downloadlinux-4dffd7a251172d78a157ff45ec1207012f44774a.tar.xz
linux-4dffd7a251172d78a157ff45ec1207012f44774a.zip
omap_hsmmc: prevent races with irq handler
If an unexpected interrupt occurs while preparing the next request, an oops can occur. For example, a new request is setting up DMA for data transfer so host->data is not NULL. An unexpected transfer complete (TC) interrupt comes along and the interrupt handler sets host->data to NULL. Oops! Prevent that by adding a spinlock. Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com> Acked-by: Matt Fleming <matt@console-pimps.org> Cc: Ian Molton <ian@mnementh.co.uk> Cc: "Roberto A. Foglietta" <roberto.foglietta@gmail.com> Cc: Jarkko Lavinen <jarkko.lavinen@nokia.com> Cc: Denis Karpov <ext-denis.2.karpov@nokia.com> Cc: Pierre Ossman <pierre@ossman.eu> Cc: Philip Langdale <philipl@overt.org> Cc: "Madhusudhan" <madhu.cr@ti.com> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/gcd.c')
0 files changed, 0 insertions, 0 deletions