Commit 3fa327f8 authored by Mark Haverkamp's avatar Mark Haverkamp Committed by Linus Torvalds

[PATCH] fix megaraid driver compile error

This moves access of the host element to device since host has been
removed from struct scsi_cmnd.
parent ebf5ebe3
......@@ -4515,7 +4515,7 @@ static int megadev_ioctl (struct inode *inode, struct file *filep,
if(scsicmd == NULL) return -ENOMEM;
memset(scsicmd, 0, sizeof(Scsi_Cmnd));
scsicmd->host = shpnt;
scsicmd->device->host = shpnt;
if( outlen || inlen ) {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
......@@ -4652,7 +4652,7 @@ static int megadev_ioctl (struct inode *inode, struct file *filep,
if(scsicmd == NULL) return -ENOMEM;
memset(scsicmd, 0, sizeof(Scsi_Cmnd));
scsicmd->host = shpnt;
scsicmd->device->host = shpnt;
if (outlen || inlen) {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment