summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/thunderbolt
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/thunderbolt')
-rw-r--r--kernel/drivers/thunderbolt/eeprom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/drivers/thunderbolt/eeprom.c b/kernel/drivers/thunderbolt/eeprom.c
index 0dde34e3a..545c60c82 100644
--- a/kernel/drivers/thunderbolt/eeprom.c
+++ b/kernel/drivers/thunderbolt/eeprom.c
@@ -444,6 +444,7 @@ int tb_drom_read(struct tb_switch *sw)
return tb_drom_parse_entries(sw);
err:
kfree(sw->drom);
+ sw->drom = NULL;
return -EIO;
}