commit | ff3f0830cf71c97392ad8a2dd4aaf95d88f34634 | [log] [tgz] |
---|---|---|
author | Martin Kurbanov <mmkurbanov@salutedevices.com> | Sun Jun 16 16:34:18 2024 +0300 |
committer | Heiko Schocher <hs@denx.de> | Wed Jul 03 08:05:19 2024 +0200 |
tree | 1a01a61defd74c3f566897dc54d6bd5c1afdeed1 | |
parent | fb42f60e89369d909fa81be56a034e386377054e [diff] |
cmd: ubi: check 'updating' before calling ubi_more_update_data() 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(). Signed-off-by: Martin Kurbanov <mmkurbanov@salutedevices.com>