fw/comm/msgb: Really panic (i.e. lockup) if we run out of msgb
authorSylvain Munaut <tnt@246tNt.com>
Sat, 4 Jun 2011 10:21:52 +0000 (12:21 +0200)
committerSylvain Munaut <tnt@246tNt.com>
Sat, 25 Jun 2011 20:29:06 +0000 (22:29 +0200)
commitfc16cbb578c7dcacf9d6dfc45625b4233570b659
treef933095669a786c0d71030ec7f0ce6a224af4e22
parent6eba3fe6a5c9cf10f499897a46916402e203e062
fw/comm/msgb: Really panic (i.e. lockup) if we run out of msgb

Ideally we should only panic in interrupt context. In user
context, we could wait ...

We could also return NULL and let the calling code deal with it
but it's not ready for that yet.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
src/target/firmware/comm/msgb.c