fdtdec: Fix possible infinite loop in fdtdec_get_pci_vendev()
authorBin Meng <bmeng.cn@gmail.com>
Thu, 20 Aug 2015 13:40:25 +0000 (06:40 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 26 Aug 2015 14:54:13 +0000 (07:54 -0700)
commitbc6351eb48c116e9d38329c06f7e5a87ea8ec8ac
tree304f26ce455915647cb92696e9b0e9a6bdf82c36
parent19b4a3369876f9215e2b861f211e8df1a75e26ca
fdtdec: Fix possible infinite loop in fdtdec_get_pci_vendev()

When there is no valid compatible string in current list,
we should advance to next one in the compatible string list.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
lib/fdtdec.c