Don't do malloc(M_WAITOK) for sound buffers while locks are held.

This commit is contained in:
green 2004-04-29 02:51:59 +00:00
parent b96a62a850
commit 3b2378c6c0

View File

@ -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);