
27 Mar
2021
27 Mar
'21
4:18 a.m.
dfu_free_entities() invoking dfu_free_entity_sf() has let to segementation faults due to double freeing the same device.
spi_flash_free() is not relevant for the driver model but exists only for compatibility with old drivers.
We must not remove any device here:
* The device may still be referenced. * We don't want to have to probe again.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de --- drivers/mtd/spi/sf-uclass.c | 5 ----- include/spi_flash.h | 4 +++- 2 files changed, 3 insertions(+), 6 deletions(-)
Applied to u-boot-dm/next, thanks!