]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
bfa: Fix incorrect de-reference of pointer
authorAnil Gurumurthy <anil.gurumurthy@qlogic.com>
Thu, 13 Aug 2015 10:41:52 +0000 (06:41 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Sun, 6 Sep 2015 18:39:53 +0000 (11:39 -0700)
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>
drivers/scsi/bfa/bfa_ioc.c

index 4e7104461f09e50b5a8ce087945fdad363946467..98f7e8cca52df25e017887b3d491b2272d7a798e 100644 (file)
@@ -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);
                }
                /*