]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
qla2xxx: IOCB data should be copied to I/O mem using memcpy_toio.
authorAtul Deshmukh <atul.deshmukh@qlogic.com>
Fri, 11 Apr 2014 20:54:30 +0000 (16:54 -0400)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 11:31:03 +0000 (13:31 +0200)
Signed-off-by: Atul Deshmukh <atul.deshmukh@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla2xxx/qla_mr.c

index eb9be2efe65be139465687b2c65abcc5b6c8a63a..3fdf844eb7cdeae965995d74b410a85acfacbbb4 100644 (file)
@@ -3427,7 +3427,7 @@ qlafx00_fxdisc_iocb(srb_t *sp, struct fxdisc_entry_fx00 *pfxiocb)
            sp->fcport->vha, 0x3047,
            (uint8_t *)&fx_iocb, sizeof(struct fxdisc_entry_fx00));
 
-       memcpy((void *)pfxiocb, &fx_iocb,
+       memcpy_toio((void __iomem *)pfxiocb, &fx_iocb,
            sizeof(struct fxdisc_entry_fx00));
        wmb();
 }