mirror of
https://github.com/smaeul/u-boot.git
synced 2025-11-16 11:52:28 +00:00
If the buffer is empty and not allocated, then abuf_realloc() tries to copy invalid data. This happens because an incorrect change to use memdup() was added after the original code was written. Signed-off-by: Simon Glass <sjg@chromium.org>