]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] ipr: Fix HDIO_GET_IDENTITY oops for SATA devices
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 11 Jul 2008 18:37:50 +0000 (13:37 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 11 Jul 2008 18:45:48 +0000 (13:45 -0500)
commit2b9d119f168d6e9d3c3ed4a8c9071cda25e319fa
treeb2bbd89c0e18f3a67a361bee738eef65562b212e
parentb7139a2f1ba9953646abbc4d61f1cefcc4efaf4b
[SCSI] ipr: Fix HDIO_GET_IDENTITY oops for SATA devices

Currently, ipr does not support HDIO_GET_IDENTITY to SATA devices.
An oops occurs if userspace attempts to send the command. Since hald
issues the command, ensure we fail the ioctl in ipr. This is a
temporary solution to the oops. Once the ipr libata EH conversion
is upstream, ipr will fully support HDIO_GET_IDENTITY.

Tested-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/ipr.c