diff options
author | Patrick Boettcher <devnull@localhost> | 2004-12-30 22:00:10 +0000 |
---|---|---|
committer | Patrick Boettcher <devnull@localhost> | 2004-12-30 22:00:10 +0000 |
commit | d30ec107850e72d64456a93ce50a56d13d9e7939 (patch) | |
tree | 61fedb241d91a425ef6d09458f50debc3fead396 /linux | |
parent | ef23bc637ac39202aeb74bbe068100e4bec89beb (diff) | |
download | mediapointer-dvb-s2-d30ec107850e72d64456a93ce50a56d13d9e7939.tar.gz mediapointer-dvb-s2-d30ec107850e72d64456a93ce50a56d13d9e7939.tar.bz2 |
init state check for dvb part, forgot in the first place ..
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/dibusb/dvb-dibusb-dvb.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb-dvb.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb-dvb.c index 3b82ac072..97747cc4e 100644 --- a/linux/drivers/media/dvb/dibusb/dvb-dibusb-dvb.c +++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb-dvb.c @@ -196,12 +196,14 @@ success: int dibusb_dvb_exit(struct usb_dibusb *dib) { - dib->init_state &= ~DIBUSB_STATE_DVB; - deb_info("unregistering DVB part\n"); - dvb_net_release(&dib->dvb_net); - dib->demux.dmx.close(&dib->demux.dmx); - dvb_dmxdev_release(&dib->dmxdev); - dvb_dmx_release(&dib->demux); - dvb_unregister_adapter(dib->adapter); + if (dib->init_state & DIBUSB_STATE_DVB) { + dib->init_state &= ~DIBUSB_STATE_DVB; + deb_info("unregistering DVB part\n"); + dvb_net_release(&dib->dvb_net); + dib->demux.dmx.close(&dib->demux.dmx); + dvb_dmxdev_release(&dib->dmxdev); + dvb_dmx_release(&dib->demux); + dvb_unregister_adapter(dib->adapter); + } return 0; } |