All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] ASoC: max98925: reading beyond the end of the array
@ 2015-07-21  8:55 ` Dan Carpenter
  0 siblings, 0 replies; 9+ messages in thread
From: Dan Carpenter @ 2015-07-21  8:55 UTC (permalink / raw)
  To: Liam Girdwood, Anish Kumar
  Cc: Krzysztof Kozlowski, Lars-Peter Clausen, Axel Lin, alsa-devel,
	kernel-janitors, Takashi Iwai, Mark Brown

Debug prints are seldom useful and this one has an annoying thing where
it reads one space beyond the end of the array on error.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/sound/soc/codecs/max98925.c b/sound/soc/codecs/max98925.c
index e1753c8..ebb648a 100644
--- a/sound/soc/codecs/max98925.c
+++ b/sound/soc/codecs/max98925.c
@@ -271,8 +271,6 @@ static inline int max98925_rate_value(struct snd_soc_codec *codec,
 			break;
 		}
 	}
-	dev_dbg(codec->dev, "%s: sample rate is %d, returning %d\n",
-				__func__, rate_table[i].rate, *value);
 	return ret;
 }
 

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [patch] ASoC: max98925: reading beyond the end of the array
@ 2015-07-21  8:55 ` Dan Carpenter
  0 siblings, 0 replies; 9+ messages in thread
From: Dan Carpenter @ 2015-07-21  8:55 UTC (permalink / raw)
  To: Liam Girdwood, Anish Kumar
  Cc: Krzysztof Kozlowski, Lars-Peter Clausen, Axel Lin, alsa-devel,
	kernel-janitors, Takashi Iwai, Mark Brown

Debug prints are seldom useful and this one has an annoying thing where
it reads one space beyond the end of the array on error.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/sound/soc/codecs/max98925.c b/sound/soc/codecs/max98925.c
index e1753c8..ebb648a 100644
--- a/sound/soc/codecs/max98925.c
+++ b/sound/soc/codecs/max98925.c
@@ -271,8 +271,6 @@ static inline int max98925_rate_value(struct snd_soc_codec *codec,
 			break;
 		}
 	}
-	dev_dbg(codec->dev, "%s: sample rate is %d, returning %d\n",
-				__func__, rate_table[i].rate, *value);
 	return ret;
 }
 

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [patch] ASoC: max98925: reading beyond the end of the array
  2015-07-21  8:55 ` Dan Carpenter
@ 2015-07-21 10:43   ` Mark Brown
  -1 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2015-07-21 10:43 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Liam Girdwood, Anish Kumar, Jaroslav Kysela, Takashi Iwai,
	Axel Lin, Krzysztof Kozlowski, Lars-Peter Clausen, alsa-devel,
	kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

On Tue, Jul 21, 2015 at 11:55:27AM +0300, Dan Carpenter wrote:
> Debug prints are seldom useful and this one has an annoying thing where
> it reads one space beyond the end of the array on error.

It's a pretty big stretch to say that debug prints are rarely useful...

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [patch] ASoC: max98925: reading beyond the end of the array
@ 2015-07-21 10:43   ` Mark Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2015-07-21 10:43 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Liam Girdwood, Anish Kumar, Jaroslav Kysela, Takashi Iwai,
	Axel Lin, Krzysztof Kozlowski, Lars-Peter Clausen, alsa-devel,
	kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

On Tue, Jul 21, 2015 at 11:55:27AM +0300, Dan Carpenter wrote:
> Debug prints are seldom useful and this one has an annoying thing where
> it reads one space beyond the end of the array on error.

It's a pretty big stretch to say that debug prints are rarely useful...

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Applied "ASoC: max98925: reading beyond the end of the array" to the asoc tree
  2015-07-21  8:55 ` Dan Carpenter
  (?)
  (?)
@ 2015-07-21 10:49 ` Mark Brown
  -1 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2015-07-21 10:49 UTC (permalink / raw)
  To: Dan Carpenter, Mark Brown; +Cc: alsa-devel

The patch

   ASoC: max98925: reading beyond the end of the array

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 6eb1c2a63d0415bd66c9c866b7d405662f50d5e4 Mon Sep 17 00:00:00 2001
From: Dan Carpenter <dan.carpenter@oracle.com>
Date: Tue, 21 Jul 2015 11:55:27 +0300
Subject: [PATCH] ASoC: max98925: reading beyond the end of the array

Debug prints are seldom useful and this one has an annoying thing where
it reads one space beyond the end of the array on error.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/max98925.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/codecs/max98925.c b/sound/soc/codecs/max98925.c
index eddf8bc07314..0883d87776b1 100644
--- a/sound/soc/codecs/max98925.c
+++ b/sound/soc/codecs/max98925.c
@@ -271,8 +271,6 @@ static inline int max98925_rate_value(struct snd_soc_codec *codec,
 			break;
 		}
 	}
-	dev_dbg(codec->dev, "%s: sample rate is %d, returning %d\n",
-				__func__, rate_table[i].rate, *value);
 	return ret;
 }
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [patch] ASoC: max98925: reading beyond the end of the array
  2015-07-21 10:43   ` Mark Brown
@ 2015-07-21 10:57     ` Dan Carpenter
  -1 siblings, 0 replies; 9+ messages in thread
From: Dan Carpenter @ 2015-07-21 10:57 UTC (permalink / raw)
  To: Mark Brown
  Cc: Krzysztof Kozlowski, Lars-Peter Clausen, Axel Lin, alsa-devel,
	Liam Girdwood, Anish Kumar, kernel-janitors, Takashi Iwai

On Tue, Jul 21, 2015 at 11:43:50AM +0100, Mark Brown wrote:
> On Tue, Jul 21, 2015 at 11:55:27AM +0300, Dan Carpenter wrote:
> > Debug prints are seldom useful and this one has an annoying thing where
> > it reads one space beyond the end of the array on error.
> 
> It's a pretty big stretch to say that debug prints are rarely useful...

I asked Anish if it was worth fixing and he said to delete it.

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [patch] ASoC: max98925: reading beyond the end of the array
@ 2015-07-21 10:57     ` Dan Carpenter
  0 siblings, 0 replies; 9+ messages in thread
From: Dan Carpenter @ 2015-07-21 10:57 UTC (permalink / raw)
  To: Mark Brown
  Cc: Krzysztof Kozlowski, Lars-Peter Clausen, Axel Lin, alsa-devel,
	Liam Girdwood, Anish Kumar, kernel-janitors, Takashi Iwai

On Tue, Jul 21, 2015 at 11:43:50AM +0100, Mark Brown wrote:
> On Tue, Jul 21, 2015 at 11:55:27AM +0300, Dan Carpenter wrote:
> > Debug prints are seldom useful and this one has an annoying thing where
> > it reads one space beyond the end of the array on error.
> 
> It's a pretty big stretch to say that debug prints are rarely useful...

I asked Anish if it was worth fixing and he said to delete it.

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [patch] ASoC: max98925: reading beyond the end of the array
  2015-07-21 10:57     ` Dan Carpenter
@ 2015-07-21 11:04       ` Mark Brown
  -1 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2015-07-21 11:04 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Liam Girdwood, Anish Kumar, Jaroslav Kysela, Takashi Iwai,
	Axel Lin, Krzysztof Kozlowski, Lars-Peter Clausen, alsa-devel,
	kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 599 bytes --]

On Tue, Jul 21, 2015 at 01:57:43PM +0300, Dan Carpenter wrote:
> On Tue, Jul 21, 2015 at 11:43:50AM +0100, Mark Brown wrote:
> > On Tue, Jul 21, 2015 at 11:55:27AM +0300, Dan Carpenter wrote:
> > > Debug prints are seldom useful and this one has an annoying thing where
> > > it reads one space beyond the end of the array on error.

> > It's a pretty big stretch to say that debug prints are rarely useful...

> I asked Anish if it was worth fixing and he said to delete it.

Sure, but you're making a general comment about debug prints being
seldom useful rather than just talking about this one.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [patch] ASoC: max98925: reading beyond the end of the array
@ 2015-07-21 11:04       ` Mark Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2015-07-21 11:04 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Liam Girdwood, Anish Kumar, Jaroslav Kysela, Takashi Iwai,
	Axel Lin, Krzysztof Kozlowski, Lars-Peter Clausen, alsa-devel,
	kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 599 bytes --]

On Tue, Jul 21, 2015 at 01:57:43PM +0300, Dan Carpenter wrote:
> On Tue, Jul 21, 2015 at 11:43:50AM +0100, Mark Brown wrote:
> > On Tue, Jul 21, 2015 at 11:55:27AM +0300, Dan Carpenter wrote:
> > > Debug prints are seldom useful and this one has an annoying thing where
> > > it reads one space beyond the end of the array on error.

> > It's a pretty big stretch to say that debug prints are rarely useful...

> I asked Anish if it was worth fixing and he said to delete it.

Sure, but you're making a general comment about debug prints being
seldom useful rather than just talking about this one.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-21 11:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-21  8:55 [patch] ASoC: max98925: reading beyond the end of the array Dan Carpenter
2015-07-21  8:55 ` Dan Carpenter
2015-07-21 10:43 ` Mark Brown
2015-07-21 10:43   ` Mark Brown
2015-07-21 10:57   ` Dan Carpenter
2015-07-21 10:57     ` Dan Carpenter
2015-07-21 11:04     ` Mark Brown
2015-07-21 11:04       ` Mark Brown
2015-07-21 10:49 ` Applied "ASoC: max98925: reading beyond the end of the array" to the asoc tree 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.