Messages in this thread | | | Subject | Re: [PATCH] ASoC: Fix snd_soc_register_dais error handling | From | Liam Girdwood <> | Date | Wed, 03 Nov 2010 09:07:40 +0000 |
| |
On Wed, 2010-11-03 at 15:04 +0800, Axel Lin wrote: > kzalloc for dai may fail at any iteration of the for loop, > thus properly unregister already registered DAIs before return error. > > The error handling code in snd_soc_register_dais() already ensure all the DAIs > are unregistered before return error, we can remove the error handling code > to unregister DAIs in snd_soc_register_codec(). > > Signed-off-by: Axel Lin <axel.lin@gmail.com> > ---
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> -- Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
| |