File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3748,8 +3748,7 @@ lpfc_vmid_cmd(struct lpfc_vport *vport,
3748
3748
rap -> obj [0 ].entity_id_len = vmid -> vmid_len ;
3749
3749
memcpy (rap -> obj [0 ].entity_id , vmid -> host_vmid , vmid -> vmid_len );
3750
3750
size = RAPP_IDENT_OFFSET +
3751
- sizeof (struct lpfc_vmid_rapp_ident_list ) +
3752
- sizeof (struct entity_id_object );
3751
+ struct_size (rap , obj , be32_to_cpu (rap -> no_of_objects ));
3753
3752
retry = 1 ;
3754
3753
break ;
3755
3754
@@ -3768,8 +3767,7 @@ lpfc_vmid_cmd(struct lpfc_vport *vport,
3768
3767
dap -> obj [0 ].entity_id_len = vmid -> vmid_len ;
3769
3768
memcpy (dap -> obj [0 ].entity_id , vmid -> host_vmid , vmid -> vmid_len );
3770
3769
size = DAPP_IDENT_OFFSET +
3771
- sizeof (struct lpfc_vmid_dapp_ident_list ) +
3772
- sizeof (struct entity_id_object );
3770
+ struct_size (dap , obj , be32_to_cpu (dap -> no_of_objects ));
3773
3771
write_lock (& vport -> vmid_lock );
3774
3772
vmid -> flag &= ~LPFC_VMID_REGISTERED ;
3775
3773
write_unlock (& vport -> vmid_lock );
You can’t perform that action at this time.
0 commit comments