* [PATCH] beyond ARRAY_SIZE of s3c64xx_i2s
@ 2009-05-20 15:09 Roel Kluin
2009-05-20 15:14 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Roel Kluin @ 2009-05-20 15:09 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, Andrew Morton
Do not go beyond ARRAY_SIZE of s3c64xx_i2s
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
In this case you are Maintainer, correct?
diff --git a/sound/soc/s3c24xx/s3c64xx-i2s.c b/sound/soc/s3c24xx/s3c64xx-i2s.c
index 33c5de7..f2d3021 100644
--- a/sound/soc/s3c24xx/s3c64xx-i2s.c
+++ b/sound/soc/s3c24xx/s3c64xx-i2s.c
@@ -126,7 +126,7 @@ static int s3c64xx_i2s_probe(struct platform_device *pdev,
dev_dbg(dev, "%s: probing dai %d\n", __func__, pdev->id);
- if (pdev->id < 0 || pdev->id > ARRAY_SIZE(s3c64xx_i2s)) {
+ if (pdev->id < 0 || pdev->id >= ARRAY_SIZE(s3c64xx_i2s)) {
dev_err(dev, "id %d out of range\n", pdev->id);
return -EINVAL;
}
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] beyond ARRAY_SIZE of s3c64xx_i2s
2009-05-20 15:09 [PATCH] beyond ARRAY_SIZE of s3c64xx_i2s Roel Kluin
@ 2009-05-20 15:14 ` Mark Brown
2009-05-21 17:59 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2009-05-20 15:14 UTC (permalink / raw)
To: Roel Kluin; +Cc: alsa-devel, Andrew Morton
On Wed, May 20, 2009 at 05:09:50PM +0200, Roel Kluin wrote:
> Do not go beyond ARRAY_SIZE of s3c64xx_i2s
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Looks good, I'll apply this.
> ---
> In this case you are Maintainer, correct?
Yes, for anything in sound/soc.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] beyond ARRAY_SIZE of s3c64xx_i2s
2009-05-20 15:14 ` Mark Brown
@ 2009-05-21 17:59 ` Mark Brown
0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2009-05-21 17:59 UTC (permalink / raw)
To: Roel Kluin; +Cc: alsa-devel, Andrew Morton
On Wed, May 20, 2009 at 04:14:46PM +0100, Mark Brown wrote:
> On Wed, May 20, 2009 at 05:09:50PM +0200, Roel Kluin wrote:
> > Do not go beyond ARRAY_SIZE of s3c64xx_i2s
> >
> > Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> Looks good, I'll apply this.
...or not, since it doesn't apply against current ALSA and the issue has
been fixed in a different way already. I guess you're running some sort
of script looking for these issues, probably against current mainline?
It might be worth considering running against -next instead since that
will ensure that your patches apply more easily to people's current
development trees, or checking your results against -next to see if the
issue is still present.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-21 17:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-20 15:09 [PATCH] beyond ARRAY_SIZE of s3c64xx_i2s Roel Kluin
2009-05-20 15:14 ` Mark Brown
2009-05-21 17:59 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.