greybus: manifest: fix bundle descriptor parse
authorRui Miguel Silva <rui.silva@linaro.org>
Mon, 16 Nov 2015 19:23:25 +0000 (19:23 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 17 Nov 2015 06:26:43 +0000 (22:26 -0800)
commit5c864e775dfdecda1ea340af2d3b1c94b4dea63b
treef81db7df0230d307e2adc998e079b5d163e98b00
parent80ee842825d5f40a21b4257dd98b74f2c92e5f02
greybus: manifest: fix bundle descriptor parse

The descriptor list is walked in two points, in the bundle parsing and
cport parsing, this can make the next descriptor pointer in bundle to be
already removed by the cport remove descriptor and become invalid.

So, just get the next bundle until there no more left.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/manifest.c