Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pylibfdt: Update the bytearray size with pack()
At present pack() calls fdt_pack() which may well reduce the size of the device-tree data. However this does not currently update the size of the bytearray to take account of any reduction. This means that there may be unused data at the end of the bytearray and any users of as_bytearray() will see this extra data. Fix this by resizing the bytearray after packing. Signed-off-by: Simon Glass <[email protected]> Signed-off-by: David Gibson <[email protected]>
- Loading branch information