From: Andrew Vasquez Date: Thu, 20 Sep 2007 21:07:42 +0000 (-0700) Subject: [SCSI] qla2xxx: Use the correct pointer-address during NVRAM writes. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c45bcc8e771fa152ed540b8cb2ac8022280173bd;p=linux-beck.git [SCSI] qla2xxx: Use the correct pointer-address during NVRAM writes. Original code, incorrectly passed the address-of a pointer rather than the pointer value itself. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index 8e7e00cf7e81..445d583cf713 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c @@ -146,7 +146,7 @@ qla2x00_sysfs_write_nvram(struct kobject *kobj, /* Write NVRAM. */ spin_lock_irqsave(&ha->hardware_lock, flags); ha->isp_ops->write_nvram(ha, (uint8_t *)buf, ha->nvram_base, count); - ha->isp_ops->read_nvram(ha, (uint8_t *)&ha->nvram, ha->nvram_base, + ha->isp_ops->read_nvram(ha, (uint8_t *)ha->nvram, ha->nvram_base, count); spin_unlock_irqrestore(&ha->hardware_lock, flags);