[U-Boot] [PATCH v2 14/16] sandbox: spi: Remove an incorrect free()

Simon Glass sjg at chromium.org
Fri Feb 26 18:13:46 CET 2016


On 24 February 2016 at 09:14, Simon Glass <sjg at chromium.org> wrote:
> 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: Simon Glass <sjg at chromium.org>
> Reviewed-by: Jagan Teki <jteki at openedev.com>
> Tested-by: Jagan Teki <jteki at openedev.com>
> Reviewed-by: Tom Rini <trini at konsulko.com>
> ---
>
> Changes in v2: None
>
>  drivers/mtd/spi/sandbox.c | 1 -
>  1 file changed, 1 deletion(-)

Applied to u-boot-dm.


More information about the U-Boot mailing list