diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-07-20 11:25:22 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-20 22:35:57 +0200 |
commit | 1b2232ab879993fcf5b9391c3febf6ab5d78201e (patch) | |
tree | 276a20811a8b8fd2bf83c30396d587eacefff0ad /drivers/media/video/wm8739.c | |
parent | V4L/DVB (5877): radio-gemtek-pci: remove unused structure member (diff) | |
download | linux-1b2232ab879993fcf5b9391c3febf6ab5d78201e.tar.xz linux-1b2232ab879993fcf5b9391c3febf6ab5d78201e.zip |
V4L/DVB (5880): wm8775/wm8739: Fix memory leak when unloading module
State struct was never freed.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/wm8739.c')
-rw-r--r-- | drivers/media/video/wm8739.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/wm8739.c b/drivers/media/video/wm8739.c index 8f6741a28a47..1bf4cbec6a87 100644 --- a/drivers/media/video/wm8739.c +++ b/drivers/media/video/wm8739.c @@ -321,12 +321,14 @@ static int wm8739_probe(struct i2c_adapter *adapter) static int wm8739_detach(struct i2c_client *client) { + struct wm8739_state *state = i2c_get_clientdata(client); int err; err = i2c_detach_client(client); if (err) return err; + kfree(state); kfree(client); return 0; } |