Re: 2.6.24-rc8-mm1: old sparc64 bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Takashi,

> > > > 	I was digging through the gentoo bugzilla and found this:
> > > > 
> > > > http://bugs.gentoo.org/show_bug.cgi?id=141823
> > > > 
> > > > As you see this bug is present since at least 2.6.17. I can reproduce
> > > > that here on my hardware with 2.6.24-rc8-mm1. All you need to do is install
> > > > mp3blaster on sparc64, run:
> > > > 
> > > > $ mp3blaster some_mp3_file.mp3 
> > > > 
> > > > and stop it by pressing ctrl-c. It oopses when you stop it. It doesn't happen
> > > > every time but it'll oops in a few tries.
> > > 
> > > This looks similar like a bug I fixed ago.  Damn, it's still there.
> > > 
> > > Could you build with CONFIG_SND_DEBUG=y ?  It addas some sanity checks
> > > and might catch the fatal condition.
> > 
> > Done. I don't think it changed much though :-/
> 
> OK, could you try the patch below?

Great news. It works fine now. I tested it for some time but I'll test it even more
tommorow.

Thanks,

	Mariusz

> 
> thanks,
> 
> Takashi
> 
> ---
> 
> diff -r edbe1b84179b sound/core/oss/pcm_oss.c
> --- a/sound/core/oss/pcm_oss.c	Mon Jan 28 12:30:17 2008 +0100
> +++ b/sound/core/oss/pcm_oss.c	Mon Jan 28 12:56:13 2008 +0100
> @@ -1621,6 +1621,7 @@ static int snd_pcm_oss_sync(struct snd_p
>  					snd_pcm_format_set_silence(runtime->format,
>  								   runtime->oss.buffer,
>  								   size1);
> +					size1 /= runtime->channels; /* frames */
>  					fs = snd_enter_user();
>  					snd_pcm_lib_write(substream, (void __user *)runtime->oss.buffer, size1);
>  					snd_leave_user(fs);
> 


-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux