Made the same modification to blocking-mode handling I just made to the 440x driver.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10293 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Nathan Whitehorn
2004-11-30 04:39:56 +00:00
parent 1c5f7ab9d6
commit 81a1fbaee2
@@ -529,6 +529,8 @@ status_t b57_read(void *cookie,off_t pos,void *data,size_t *numBytes) {
if (pUmDevice->block) if (pUmDevice->block)
acquire_sem(pUmDevice->packet_release_sem); acquire_sem(pUmDevice->packet_release_sem);
else
acquire_sem_etc(pUmDevice->packet_release_sem,1,B_RELATIVE_TIMEOUT,0); // Decrement the receive sem anyway, but don't block
cpu = disable_interrupts(); cpu = disable_interrupts();
acquire_spinlock(&pUmDevice->lock); acquire_spinlock(&pUmDevice->lock);