[RESEND PATCH v1 0/2] cmd: ubi: check 'updating' before calling ubi_more_update_data()
Martin Kurbanov
mmkurbanov at salutedevices.com
Tue Sep 17 19:53:21 CEST 2024
If 0 is passed to the 'bytes' parameter in the ubi_start_update(),
there is no need to call the ubi_more_update_data(). Otherwise,
there will be a double-free of 'vol->upd_buf'.
Also check that the ubi_start_update() was called before calling
the ubi_more_update_data().
Martin Kurbanov (2):
cmd: ubi: remove redundant initializations
cmd: ubi: check 'updating' before calling ubi_more_update_data()
cmd/ubi.c | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
--
2.43.0
More information about the U-Boot
mailing list