projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
thunderbolt: Fix double free of drom buffer
[cascardo/linux.git]
/
drivers
/
thunderbolt
/
eeprom.c
diff --git
a/drivers/thunderbolt/eeprom.c
b/drivers/thunderbolt/eeprom.c
index
0c052e2
..
2b9602c
100644
(file)
--- a/
drivers/thunderbolt/eeprom.c
+++ b/
drivers/thunderbolt/eeprom.c
@@
-449,6
+449,7
@@
int tb_drom_read(struct tb_switch *sw)
return tb_drom_parse_entries(sw);
err:
kfree(sw->drom);
+ sw->drom = NULL;
return -EIO;
}