[U-Boot] [PATCH v2] ubi: Ensure no fastmap flush after uif_close

Heiko Schocher hs at denx.de
Tue Feb 6 14:02:29 UTC 2018


Hello Martin,

Am 18.01.2018 um 09:07 schrieb Martin Townsend:
> On detach UBI attempts to update fastmap after closing user interfaces
> but at this point UBI volumes have already been free()'ed and fastmap
> can no longer access these data structures.
> 
> Signed-off-by: Martin Townsend <mtownsend1973 at gmail.com>
> Cc: hs at denx.de
> Cc: kmpark at infradead.org
> Cc: richard at sigma-star.at
> ---
> Changes for v2:
>     - Fix by removing update to fastmap from ubi_fastmap_close instead
>       of reordering uif_close and ubi_wl_close in ubi_detach_mtd_dev
> 
>   drivers/mtd/ubi/fastmap-wl.c | 5 -----
>   1 file changed, 5 deletions(-)

Applied to u-boot-ubi master

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list