Skip to content
Snippets Groups Projects
Commit ffe276d2 authored by Simon Glass's avatar Simon Glass
Browse files

sandbox: spi: Remove an incorrect free()


We must not free data that is managed by driver mode. Remove this line,
which is a hangover from the pre-driver-model code.

This fixes a problem where 'sf probe' crashes U-Boot if the backing file
for the SPI flash cannot be found.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarJagan Teki <jteki@openedev.com>
Tested-by: default avatarJagan Teki <jteki@openedev.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 20f655da
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment