From: Atul Deshmukh Date: Fri, 11 Apr 2014 20:54:30 +0000 (-0400) Subject: qla2xxx: IOCB data should be copied to I/O mem using memcpy_toio. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f79a84bfafa53c5ff5acb1b1099b7223ab7c5fba;p=linux-beck.git qla2xxx: IOCB data should be copied to I/O mem using memcpy_toio. Signed-off-by: Atul Deshmukh Signed-off-by: Saurav Kashyap Signed-off-by: Christoph Hellwig --- diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c index eb9be2efe65b..3fdf844eb7cd 100644 --- a/drivers/scsi/qla2xxx/qla_mr.c +++ b/drivers/scsi/qla2xxx/qla_mr.c @@ -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(); }