Skip to content
Commit 27b169f9 authored by Martin Kurbanov's avatar Martin Kurbanov Committed by Heiko Schocher
Browse files

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: default avatarMartin Kurbanov <mmkurbanov@salutedevices.com>
parent abae0b76
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment