Bugzilla – Attachment 47655 Details for
Bug 113106
mpg321 crashes alsa
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Patch to fix zero-div in pcm compat layer
pcm-compat-fix.diff (text/plain), 964 bytes, created by
Takashi Iwai
on 2005-08-25 18:36:31 UTC
(
hide
)
Description:
Patch to fix zero-div in pcm compat layer
Filename:
MIME Type:
Creator:
Takashi Iwai
Created:
2005-08-25 18:36:31 UTC
Size:
964 bytes
patch
obsolete
>--- linux/sound/core/pcm_compat.c 12 Aug 2005 16:50:00 -0000 1.3 >+++ linux/sound/core/pcm_compat.c 25 Aug 2005 18:33:46 -0000 >@@ -144,7 +144,7 @@ > err = snd_pcm_sw_params(substream, ¶ms); > if (err < 0) > return err; >- if (put_user(boundary, &src->boundary)) >+ if (boundary && put_user(boundary, &src->boundary)) > return -EFAULT; > return err; > } >@@ -252,8 +252,11 @@ > goto error; > } > >- if (! refine) >- runtime->boundary = recalculate_boundary(runtime); >+ if (! refine) { >+ unsigned int new_boundary = recalculate_boundary(runtime); >+ if (new_boundary) >+ runtime->boundary = new_boundary; >+ } > error: > kfree(data); > return err; >@@ -408,6 +411,8 @@ > status = runtime->status; > control = runtime->control; > boundary = recalculate_boundary(runtime); >+ if (! boundary) >+ boundary = 0x7fffffff; > snd_pcm_stream_lock_irq(substream); > /* FIXME: we should consider the boundary for the sync from app */ > if (!(sflags & SNDRV_PCM_SYNC_PTR_APPL))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 113106
: 47655