| .. | .. |
|---|
| 172 | 172 | /* Trigger the PF FW */ |
|---|
| 173 | 173 | writeb_relaxed(1, &zone_data->trigger.vf_pf_channel.addr_valid); |
|---|
| 174 | 174 | |
|---|
| 175 | | - mmiowb(); |
|---|
| 176 | | - |
|---|
| 177 | 175 | /* Wait for PF to complete */ |
|---|
| 178 | 176 | while ((tout >= 0) && (!*done)) { |
|---|
| 179 | 177 | msleep(interval); |
|---|
| .. | .. |
|---|
| 957 | 955 | bnx2x_sample_bulletin(bp); |
|---|
| 958 | 956 | |
|---|
| 959 | 957 | if (bp->shadow_bulletin.content.valid_bitmap & 1 << VLAN_VALID) { |
|---|
| 960 | | - BNX2X_ERR("Hypervisor will dicline the request, avoiding\n"); |
|---|
| 958 | + BNX2X_ERR("Hypervisor will decline the request, avoiding\n"); |
|---|
| 961 | 959 | rc = -EINVAL; |
|---|
| 962 | 960 | goto out; |
|---|
| 963 | 961 | } |
|---|
| .. | .. |
|---|
| 1179 | 1177 | |
|---|
| 1180 | 1178 | /* ack the FW */ |
|---|
| 1181 | 1179 | storm_memset_vf_mbx_ack(bp, vf->abs_vfid); |
|---|
| 1182 | | - mmiowb(); |
|---|
| 1183 | 1180 | |
|---|
| 1184 | 1181 | /* copy the response header including status-done field, |
|---|
| 1185 | 1182 | * must be last dmae, must be after FW is acked |
|---|
| .. | .. |
|---|
| 1654 | 1651 | { |
|---|
| 1655 | 1652 | int i, j; |
|---|
| 1656 | 1653 | struct bnx2x_vf_mac_vlan_filters *fl = NULL; |
|---|
| 1657 | | - size_t fsz; |
|---|
| 1658 | 1654 | |
|---|
| 1659 | | - fsz = tlv->n_mac_vlan_filters * |
|---|
| 1660 | | - sizeof(struct bnx2x_vf_mac_vlan_filter) + |
|---|
| 1661 | | - sizeof(struct bnx2x_vf_mac_vlan_filters); |
|---|
| 1662 | | - |
|---|
| 1663 | | - fl = kzalloc(fsz, GFP_KERNEL); |
|---|
| 1655 | + fl = kzalloc(struct_size(fl, filters, tlv->n_mac_vlan_filters), |
|---|
| 1656 | + GFP_KERNEL); |
|---|
| 1664 | 1657 | if (!fl) |
|---|
| 1665 | 1658 | return -ENOMEM; |
|---|
| 1666 | 1659 | |
|---|
| .. | .. |
|---|
| 2190 | 2183 | */ |
|---|
| 2191 | 2184 | storm_memset_vf_mbx_ack(bp, vf->abs_vfid); |
|---|
| 2192 | 2185 | /* Firmware ack should be written before unlocking channel */ |
|---|
| 2193 | | - mmiowb(); |
|---|
| 2194 | 2186 | bnx2x_unlock_vf_pf_channel(bp, vf, mbx->first_tlv.tl.type); |
|---|
| 2195 | 2187 | } |
|---|
| 2196 | 2188 | } |
|---|