idualwifi7260: Don't memset NULL.

This commit is contained in:
Augustin Cavalier
2018-11-17 14:05:14 -05:00
parent a9ccd74af7
commit 01304f19fd
@@ -539,7 +539,8 @@ iwm_fw_info_free(struct iwm_fw_info *fw)
firmware_put(fw->fw_fp, FIRMWARE_UNLOAD);
fw->fw_fp = NULL;
/* don't touch fw->fw_status */
memset(fw->fw_sects, 0, sizeof(fw->fw_sects));
if (fw->fw_sects)
memset(fw->fw_sects, 0, sizeof(fw->fw_sects));
}
static int