diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-24 11:29:30 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-24 11:29:30 +0200 |
commit | 55603638a502a8b7bc46a556a7b7108b71996ad6 (patch) | |
tree | 14abd16f2a5f341f9a080210009104385c6eda20 /linux | |
parent | db7a0542d2c05792f43c96907b91b938179f07b2 (diff) | |
download | mediapointer-dvb-s2-55603638a502a8b7bc46a556a7b7108b71996ad6.tar.gz mediapointer-dvb-s2-55603638a502a8b7bc46a556a7b7108b71996ad6.tar.bz2 |
wm8739: remove wrong kfree
From: Hans Verkuil <hverkuil@xs4all.nl>
i2c_client is allocated for us, we should never free it ourselves.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/wm8739.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/video/wm8739.c b/linux/drivers/media/video/wm8739.c index 3ad19cf13..f9d13b89a 100644 --- a/linux/drivers/media/video/wm8739.c +++ b/linux/drivers/media/video/wm8739.c @@ -280,10 +280,8 @@ static int wm8739_probe(struct i2c_client *client, client->addr << 1, client->adapter->name); state = kmalloc(sizeof(struct wm8739_state), GFP_KERNEL); - if (state == NULL) { - kfree(client); + if (state == NULL) return -ENOMEM; - } state->vol_l = 0x17; /* 0dB */ state->vol_r = 0x17; /* 0dB */ state->muted = 0; |