summaryrefslogtreecommitdiff
path: root/tools/buildman/builderthread.py
diff options
context:
space:
mode:
authorNiel Fourie <lusus@denx.de>2020-12-16 14:11:52 +0300
committerSimon Glass <sjg@chromium.org>2020-12-23 06:39:26 +0300
commitfc314300ddbd60861b556318413662d6844a111d (patch)
tree6ee26516eab655106830acb48deb90bae4c9b664 /tools/buildman/builderthread.py
parenta5624c6b4c42560e6072c114ce185c9a4bb3fde4 (diff)
downloadu-boot-fc314300ddbd60861b556318413662d6844a111d.tar.xz
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>
Diffstat (limited to 'tools/buildman/builderthread.py')
0 files changed, 0 insertions, 0 deletions