]> git.alsa-project.org Git - alsa-lib.git/commit
Fix timer read from 32bit user-space on 64bit kernel
authorTakashi Iwai <tiwai@suse.de>
Tue, 21 Mar 2006 10:39:49 +0000 (10:39 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Mar 2006 10:39:49 +0000 (10:39 +0000)
commit91066a98b9cbb0e0adc3fdc6717fbc657bbd6c23
tree9097e918f83418516aa6b6608eff078c0b8724dc
parent24a3cfc23677bf806a5212fd812dcf880695ffd1
Fix timer read from 32bit user-space on 64bit kernel

snd_timer_tread struct is a bad design for 32/64bit compatibility,
and reading this struct on 32bit program returns zero.  This results
in tight poll looping (bug#1938, #1945).

For avoiding this bug, now more bigger buffer is read to cover the
64bit tread struct, too.  Also this optimizes the read without
checking -EAGAIN in the case both user-space and kernel have the same
tread size.
src/pcm/pcm_direct.c