aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aacraid')
-rw-r--r--drivers/scsi/aacraid/linit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index 0523cc6d895c..143e4c16b079 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -517,6 +517,8 @@ static struct device_attribute *aac_dev_attrs[] = {
517static int aac_ioctl(struct scsi_device *sdev, int cmd, void __user * arg) 517static int aac_ioctl(struct scsi_device *sdev, int cmd, void __user * arg)
518{ 518{
519 struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata; 519 struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata;
520 if (!capable(CAP_SYS_RAWIO))
521 return -EPERM;
520 return aac_do_ioctl(dev, cmd, arg); 522 return aac_do_ioctl(dev, cmd, arg);
521} 523}
522 524