[PATCH] ide-scsi: kmap scatter/gather before doing PIO
authorStuart Hayes <Stuart_Hayes@dell.com>
Thu, 26 May 2005 13:38:45 +0000 (15:38 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Thu, 26 May 2005 13:38:45 +0000 (15:38 +0200)
commit41bb4c43b34bcde7eb62cf19acdcf9f2eb13801d
treecfaeeca6836443ee680e38273cb4f7ae94c023b2
parent8604affde9d4f52f04342d6a37c77d95fa167e7a
[PATCH] ide-scsi: kmap scatter/gather before doing PIO

From: Stuart Hayes <Stuart_Hayes@dell.com>

The system can panic with a null pointer dereference using ide-scsi if
PIO is being done on scatter gather pages that are in high memory,
because page_address() returns 0.  We are actually seeing this using a
tape drive.  This patch will kmap_atomic() the pages before performing
PIO.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
drivers/scsi/ide-scsi.c