Commit 6f3d828f authored by Anil Gurumurthy's avatar Anil Gurumurthy Committed by James Bottomley

bfa: Fix incorrect de-reference of pointer

Signed-off-by: default avatarAnil Gurumurthy <anil.gurumurthy@qlogic.com>
Tested-by: default avatarSudarsana Kalluru <sudarsana.kalluru@qlogic.com>
Reviewed-by: default avatarEwan D. Milne <emilne@redhat.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent b7f4d634
......@@ -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);
}
/*
......
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