]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: host: fix seg fault at "host info"
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Thu, 22 Aug 2019 07:47:39 +0000 (16:47 +0900)
committerTom Rini <trini@konsulko.com>
Sun, 6 Oct 2019 19:20:53 +0000 (15:20 -0400)
commit915c09b059cf474cb395fb1d32c38fd7b8a31b53
tree3b716926ea489e676ac45d6ea0147d841134eed4
parentf33f1f54dd8346dd1a1641b1baed1fbe361258a3
cmd: host: fix seg fault at "host info"

With the patch below applied, host_block_dev structure was switched
to be placed in platdata rather than priv. The command "host info"
must be aligned with this change. Otherwise, we will see "Segmentation
Fault."

Fixes: 52e3dbbcbda1 ("sandbox: blk: Switch to use platdata_auto_alloc_size for the driver data")
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/host.c