idualwifi7260: Merge fix to firmware loading from FreeBSD.

Fixes #14298.
This commit is contained in:
Augustin Cavalier 2019-01-16 11:12:02 -05:00
parent 969aecd624
commit 9f8ad6a31a

View File

@ -626,7 +626,7 @@ iwm_read_firmware(struct iwm_softc *sc, enum iwm_ucode_type ucode_type)
goto parse_out;
}
len -= roundup2(tlv_len, 4);
data += sizeof(tlv) + roundup2(tlv_len, 4);
data += sizeof(*tlv) + roundup2(tlv_len, 4);
switch ((int)tlv_type) {
case IWM_UCODE_TLV_PROBE_MAX_LEN: