Re: [PATCH 2/12] ak4642: fix a memory leak if failed to initialiseAK4642

From: Kuninori Morimoto
Date: Thu Jul 15 2010 - 02:30:19 EST



Dear Axel

> I think the i2c core will take care of it now.
> see below commit log:
> commit e4a7b9b04de15f6b63da5ccdd373ffa3057a3681

Ohh !!
I didn't know that.

> In ak4642_init, current implementation will call
> snd_soc_unregister_codec(codec); before goto reg_cache_err;
> Therefore, it should be no problem.

Indeed =)

So now, your patches are very good !!

Best regards
--
Kuninori Morimoto

--
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/