Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dbootimg: Fix sigsegv while updating kernel with no dtb
Trying to update a kernel with no appended dtb resulted in: root@qt5506:~# dbootimg /dev/disk/by-partlabel/boot -u kernel /boot/Image.gz DTB not found in boot image [ 2130.770995] audit: type=1701 audit(1533805111.476:2): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=3453 comm="dbootimg" exe="/usr/bin/dbootimg" sig=11 res=1 Segmentation fault (core dumped) This patch allows upding the dtb IIF the old image contained an appended dtb. Signed-off-by: Ricardo Ribalda Delgado <[email protected]>
- Loading branch information