kernel: mtdsplit_uimage: fix rootfs offset
authorMathias Kresin <dev@kresin.me>
Sun, 2 Oct 2016 17:18:56 +0000 (19:18 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 15 Oct 2016 07:01:45 +0000 (09:01 +0200)
commit35073d47bb91fc0066a08c85c9206a6338a19b7e
tree0db598bdb28df0a6de5c6443cdef337d052aff25
parent6391af2f1fd451fcd3e4169dd1d7aa7fbe53fbda
kernel: mtdsplit_uimage: fix rootfs offset

The return value of the find_header function need to be added to the
uimage_size, otherwise mtd_find_rootfs_from() might search for a rootfs
within a custom header and fails.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c