提交 6f3d828f 编写于 作者: A Anil Gurumurthy 提交者: James Bottomley

bfa: Fix incorrect de-reference of pointer

Signed-off-by: NAnil Gurumurthy <anil.gurumurthy@qlogic.com>
Tested-by: NSudarsana Kalluru <sudarsana.kalluru@qlogic.com>
Reviewed-by: NEwan D. Milne <emilne@redhat.com>
Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册