diff options
author | Anssi Hannula <anssi.hannula@gmail.com> | 2005-07-07 20:57:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 21:23:54 -0400 |
commit | 0c744b010078bd65724477e75261e51712d290a0 (patch) | |
tree | 7d504d2e4d3d9a832a8df55eef3b4edc07acee18 /drivers/media/dvb/frontends/tda1004x.c | |
parent | 3faadbb0fde3c53e1c4f13eabb478c0c7cb1e4dd (diff) |
[PATCH] dvb: add missing release_firmware() calls
Add missing release_firmware() calls to fix memory leaks.
Signed-off-by: Anssi Hannula <anssi.hannula@gmail.com>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb/frontends/tda1004x.c')
-rw-r--r-- | drivers/media/dvb/frontends/tda1004x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/tda1004x.c b/drivers/media/dvb/frontends/tda1004x.c index 237edc486122..2d5f56cbf506 100644 --- a/drivers/media/dvb/frontends/tda1004x.c +++ b/drivers/media/dvb/frontends/tda1004x.c | |||
@@ -385,6 +385,7 @@ static int tda10045_fwupload(struct dvb_frontend* fe) | |||
385 | tda10045h_set_bandwidth(state, BANDWIDTH_8_MHZ); | 385 | tda10045h_set_bandwidth(state, BANDWIDTH_8_MHZ); |
386 | 386 | ||
387 | ret = tda1004x_do_upload(state, fw->data, fw->size, TDA10045H_FWPAGE, TDA10045H_CODE_IN); | 387 | ret = tda1004x_do_upload(state, fw->data, fw->size, TDA10045H_FWPAGE, TDA10045H_CODE_IN); |
388 | release_firmware(fw); | ||
388 | if (ret) | 389 | if (ret) |
389 | return ret; | 390 | return ret; |
390 | printk(KERN_INFO "tda1004x: firmware upload complete\n"); | 391 | printk(KERN_INFO "tda1004x: firmware upload complete\n"); |
@@ -452,6 +453,7 @@ static int tda10046_fwupload(struct dvb_frontend* fe) | |||
452 | } | 453 | } |
453 | tda1004x_write_mask(state, TDA1004X_CONFC4, 8, 8); // going to boot from HOST | 454 | tda1004x_write_mask(state, TDA1004X_CONFC4, 8, 8); // going to boot from HOST |
454 | ret = tda1004x_do_upload(state, fw->data, fw->size, TDA10046H_CODE_CPT, TDA10046H_CODE_IN); | 455 | ret = tda1004x_do_upload(state, fw->data, fw->size, TDA10046H_CODE_CPT, TDA10046H_CODE_IN); |
456 | release_firmware(fw); | ||
455 | if (ret) | 457 | if (ret) |
456 | return ret; | 458 | return ret; |
457 | } else { | 459 | } else { |