]> git.baikalelectronics.ru Git - uboot.git/commit
dfu: dfu_sf: avoid double free of SPI device
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 18 Mar 2021 06:46:07 +0000 (07:46 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 25 Mar 2021 19:15:30 +0000 (20:15 +0100)
commitdd24782325c7245c25f720eeed560e1d2047df10
tree5e49f1a97609367f8ade9d44968efa071b171b15
parent69c5e25a353d21364d0c9e7b211ee66c918f3ea5
dfu: dfu_sf: avoid double free of SPI device

Multiple DFU entities may share the same SPI device. We must make sure that
the SPI device is only freed once.

When using the driver model it is not necessary to free the SPI device.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Lukasz Majewski <lukma@denx.de>
drivers/dfu/dfu_sf.c