Files
u-boot/drivers/spi
Niel Fourie fc314300dd dm: spi: Fix spi_free_slave() freed memory write
Remove setting slave->dev to NULL after the device_remove() call.

The slave pointer points to dev->parent_priv, which has already
been freed by device_free(), called from device_remove() in the
preceding line. Writing to slave->dev may cause corruption of the
dlmalloc free chunk forward pointer of the previously freed chunk.

Signed-off-by: Niel Fourie <lusus@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-12-22 20:39:26 -07:00
..
2020-12-18 20:32:21 -07:00
2020-06-11 15:14:04 +05:30
2020-12-18 20:32:21 -07:00
2020-12-18 20:32:21 -07:00
2020-12-18 20:32:21 -07:00
2020-12-18 20:32:21 -07:00
2020-12-18 20:32:21 -07:00
2020-08-03 22:19:54 -04:00
2020-12-18 20:32:21 -07:00
2020-12-18 20:32:21 -07:00
2020-12-18 20:32:21 -07:00