altos: Make sure we drop the SPI mutex when aborting cc1120 recv
authorKeith Packard <keithp@keithp.com>
Sat, 27 Sep 2014 05:53:39 +0000 (22:53 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 27 Sep 2014 06:01:18 +0000 (23:01 -0700)
The cc1120 receive code is 'twisty', in that it acquires the SPI mutex
in the middle of an interrupt handler so that it can quickly start the
radio when the signal comes in. This means we have to be careful to
drop that mutex in all paths which leave the receive code, including
when the packet receive is aborted mid-way through the process.

Signed-off-by: Keith Packard <keithp@keithp.com>

No differences found