[PATCH] 3ware: kmap_atomic() fix
authorAndrew Morton <akpm@osdl.org>
Tue, 11 Apr 2006 05:54:34 +0000 (22:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:46 +0000 (06:18 -0700)
commit7551d9a20b3cfbac9f8a28b7d909c4b15a94924f
tree5347998cb265d323aaece33b3539a56f83186df2
parentb3f28a9a26d9e8a02119cc8d1604fdb891c23697
[PATCH] 3ware: kmap_atomic() fix

We must disable local IRQs while holding KM_IRQ0 or KM_IRQ1.  Otherwise, an
IRQ handler could use those kmap slots while this code is using them,
resulting in memory corruption.

Thanks to Nick Orlov <bugfixer@list.ru> for reporting.

Cc: <linuxraid@amcc.com>
Cc: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/scsi/3w-xxxx.c