diff options
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c index 85790c0cf..60c888eb2 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -907,8 +907,9 @@ int dvb_unregister_frontend(struct dvb_frontend* fe) fe->ops->release(fe); else printk("dvb_frontend: Demodulator (%s) does not have a release callback!\n", fe->ops->info.name); - if (fe->frontend_priv) - kfree(fe->frontend_priv); + /* fe is invalid now */ + if (fepriv) + kfree(fepriv); up (&frontend_mutex); return 0; } |