From c15596e3c5ea5f093f53547b31cd4a73bfcf4206 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 23 Jul 2010 05:53:44 +0000 Subject: [PATCH] --- yaml --- r: 206636 b: refs/heads/master c: 7bcaad919bc7aaa084f5884aa15654fe1fa4c77f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/soc/codecs/ak4642.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 9482279a79a0..e837387e0013 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fd3c8ac9cb653f7e3122bba9bc7beaad6062b7f4 +refs/heads/master: 7bcaad919bc7aaa084f5884aa15654fe1fa4c77f diff --git a/trunk/sound/soc/codecs/ak4642.c b/trunk/sound/soc/codecs/ak4642.c index 60b83b482467..3d7dc55305ec 100644 --- a/trunk/sound/soc/codecs/ak4642.c +++ b/trunk/sound/soc/codecs/ak4642.c @@ -498,8 +498,10 @@ static int ak4642_i2c_probe(struct i2c_client *i2c, codec->control_data = i2c; ret = ak4642_init(ak4642); - if (ret < 0) + if (ret < 0) { printk(KERN_ERR "failed to initialise AK4642\n"); + kfree(ak4642); + } return ret; }