xpp: mark an AB as failed if it gives bad desc

If we fail at handling the device descriptor from the Astribank, mark it
as in state "failed".

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
Tzafrir Cohen 2013-11-06 19:05:00 +02:00
parent 7adc74512e
commit f287c0af7f

View File

@ -568,6 +568,7 @@ HANDLER_DEF(GLOBAL, AB_DESCRIPTION)
} }
goto out; goto out;
proto_err: proto_err:
xbus_setstate(xbus, XBUS_STATE_FAIL);
dump_packet("AB_DESCRIPTION", pack, DBG_ANY); dump_packet("AB_DESCRIPTION", pack, DBG_ANY);
out: out:
return ret; return ret;