public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>,
	linux-kernel@vger.kernel.org, dbrownell@users.sourceforge.net,
	kay.sievers@vrfy.org, weiyi.huang@gmail.com,
	Andrew Victor <avictor.za@gmail.com>
Subject: Re: [PATCH 1/1] atmel-ssc: fix misuse of dev_dbg when requested ssc instance is not found
Date: Fri, 30 Jan 2009 10:50:57 +0100	[thread overview]
Message-ID: <20090130105057.7d0acaec@hcegtvedt> (raw)
In-Reply-To: <20090130013628.4672215d.akpm@linux-foundation.org>

On Fri, 30 Jan 2009 01:36:28 -0800
Andrew Morton <akpm@linux-foundation.org> wrote:

> On Fri, 30 Jan 2009 10:26:54 +0100 Haavard Skinnemoen
> <haavard.skinnemoen@atmel.com> wrote:
> 
> > [CCs added]
> > 
> > Hans-Christian Egtvedt wrote:
> > > This patch replaces the dev_dbg(...) with a pr_err since the ssc
> > > pointer is not valid when the id is not found in the list.
> > > 
> > > Signed-off-by: Hans-Christian Egtvedt
> > > <hans-christian.egtvedt@atmel.com>
> > 
> > Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
> > 
> > ...or should I just apply it to the avr32 tree?
> > 
> 
> Is OK, I tossed into onto my 2.6.29 pile.
> 
> Should it be backported to 2.6.28.x or earlier?
> 

It shoud apply clean to 2.6.28.x as well, but this bug will only
trigger when a user of the SSC peripheral tries to request a SSC which
is already requested or not added to the list at all. So in most cases
bad platform drivers setup, configuration error or bad code.

In kernel 2.6.29-rc3 there are three users:

1 sound/soc/atmel/sam9g20_wm8731.c        274 ssc = ssc_request(0);
2 sound/soc/atmel/playpaq_wm8510.c        399 ssc = ssc_request(0);
3 sound/spi/at73c213.c                    980 chip->ssc = ssc_request(board->ssc_id);

The two first are a bit suspicious since they hard code id 0.

My 0.02 € is to get it in for 2.6.29, but fine to leave out for earlier
kernels.

-- 
Best regards,
Hans-Christian Egtvedt

  reply	other threads:[~2009-01-30  9:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-19 12:57 [PATCH 1/1] atmel-ssc: fix misuse of dev_dbg when requested ssc instance is not found Hans-Christian Egtvedt
2009-01-29 16:46 ` Hans-Christian Egtvedt
2009-01-29 23:50   ` Andrew Morton
2009-01-30  8:20     ` Hans-Christian Egtvedt
2009-01-30  8:35       ` Andrew Morton
2009-01-30  9:26 ` Haavard Skinnemoen
2009-01-30  9:36   ` Andrew Morton
2009-01-30  9:50     ` Hans-Christian Egtvedt [this message]
2009-01-30 12:54       ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090130105057.7d0acaec@hcegtvedt \
    --to=hans-christian.egtvedt@atmel.com \
    --cc=akpm@linux-foundation.org \
    --cc=avictor.za@gmail.com \
    --cc=dbrownell@users.sourceforge.net \
    --cc=haavard.skinnemoen@atmel.com \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=weiyi.huang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox