Re: [PATCH -next] ASoC: mid-x86: add missing iounmap() to probeerror and remove

From: Mark Brown
Date: Mon May 13 2013 - 09:46:12 EST


On Mon, May 13, 2013 at 05:00:44PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
>
> Add the missing iounmap() before return from snd_mfld_mc_probe()
> in the error handling case and to snd_mfld_mc_remove().

A better approach to this sort of issue is to convert to devm_,
eliminating the possibility of such errors in the future.

Attachment: signature.asc
Description: Digital signature