47c8c15878
If the processing threads are interrupted between the shutdown check and re- adding the buffer back to the device, the device can be left with a buffer that will get unprepared and freed while in use.