]> git.dujemihanovic.xyz Git - u-boot.git/commit
part: return -ENOSYS when get_info not valid.
authorschspa <schspa@gmail.com>
Wed, 20 Oct 2021 12:15:55 +0000 (20:15 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 18 Nov 2021 23:20:06 +0000 (18:20 -0500)
commit50f7b2effd4971439e9b66467e4abf6688a124d9
tree93894b13a8d90ec42833cac91286461172c30b7d
parent0171d056ec8b9be9d90af64adce54c6a5571dd15
part: return -ENOSYS when get_info not valid.

In some case, get_info() interface can be NULL, add this check to stop
from crash.

Signed-off-by: schspa <schspa@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
disk/part.c