Don't do malloc(M_WAITOK) for sound buffers while locks are held.
This commit is contained in:
parent
b96a62a850
commit
3b2378c6c0
@ -131,7 +131,7 @@ sndbuf_resize(struct snd_dbuf *b, unsigned int blkcnt, unsigned int blksz)
|
||||
goto out;
|
||||
|
||||
chn_unlock(b->channel);
|
||||
tmpbuf = malloc(blkcnt * blksz, M_DEVBUF, M_WAITOK);
|
||||
tmpbuf = malloc(blkcnt * blksz, M_DEVBUF, M_NOWAIT);
|
||||
if (tmpbuf == NULL)
|
||||
return ENOMEM;
|
||||
chn_lock(b->channel);
|
||||
|
Loading…
Reference in New Issue
Block a user