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

This commit is contained in:
Brian Feldman 2004-04-29 02:51:59 +00:00
parent 0a4a8041ba
commit 35ce92de2d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128730

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