diff options
author | Anil Gurumurthy <anil.gurumurthy@qlogic.com> | 2015-08-13 13:41:52 +0300 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-09-06 21:39:53 +0300 |
commit | 6f3d828f5bd72174c24789aba5d4ed036b60f44b (patch) | |
tree | f1e6ba2b88db7aa9a72ca10adfb5dfb47ad26237 /drivers/scsi/bfa/bfa_ioc.c | |
parent | b7f4d6343820af5c2dc3979e91d85e71e638cd3d (diff) | |
download | linux-6f3d828f5bd72174c24789aba5d4ed036b60f44b.tar.xz |
bfa: Fix incorrect de-reference of pointer
Signed-off-by: Anil Gurumurthy <anil.gurumurthy@qlogic.com>
Tested-by: Sudarsana Kalluru <sudarsana.kalluru@qlogic.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/bfa/bfa_ioc.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_ioc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc.c b/drivers/scsi/bfa/bfa_ioc.c index 4e7104461f09..98f7e8cca52d 100644 --- a/drivers/scsi/bfa/bfa_ioc.c +++ b/drivers/scsi/bfa/bfa_ioc.c @@ -3878,7 +3878,7 @@ bfa_sfp_show_comp(struct bfa_sfp_s *sfp, struct bfi_mbmsg_s *msg) bfa_trc(sfp, sfp->data_valid); if (sfp->data_valid) { u32 size = sizeof(struct sfp_mem_s); - u8 *des = (u8 *) &(sfp->sfpmem); + u8 *des = (u8 *)(sfp->sfpmem); memcpy(des, sfp->dbuf_kva, size); } /* |