Message ID | tencent_741B182568BA97BBA133319E461B544B2C08@qq.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | media: dvbdev: keep dvb device ref balanced in dvb generic release and open | expand |
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c index a05aa271a1ba..738b63255e5c 100644 --- a/drivers/media/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb-core/dvb_frontend.c @@ -2873,6 +2873,7 @@ static int dvb_frontend_open(struct inode *inode, struct file *file) if (adapter->mfe_shared) mutex_unlock(&adapter->mfe_lock); + dvb_generic_release(inode, file); return ret; err3: diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index 9df7c213716a..d17f08adf443 100644 --- a/drivers/media/dvb-core/dvbdev.c +++ b/drivers/media/dvb-core/dvbdev.c @@ -148,6 +148,7 @@ int dvb_generic_open(struct inode *inode, struct file *file) } dvbdev->users--; + dvb_device_get(dvbdev); return 0; } EXPORT_SYMBOL(dvb_generic_open);