Re: [PATCH] ASoC: Only deregister AC97 dev if it's name was not"AC97"

From: Mark Brown
Date: Mon Mar 16 2009 - 12:01:55 EST


On Mon, Mar 16, 2009 at 03:32:50PM +0100, Takashi Iwai wrote:

> Hm, codec->ac97->dev.bus should be NULL unless it's registered,
> so calling soc_ac97_dev_unregister() should be harmless...

Atsushi, are you using ac97.c as your codec driver? Could you please
post the actual backtrace you're seeing?

> Maybe I miss something?

There's some fun and games here due to ac97.c which provides the ability
to use the standard ALSA AC97 functionality as a codec driver (that's
why there's the check on init) - I suspect there may be a double free.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/