summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorPatrick Boettcher <devnull@localhost>2005-07-22 15:29:11 +0000
committerPatrick Boettcher <devnull@localhost>2005-07-22 15:29:11 +0000
commit430ac70af636094b7ac61f10ec0dfcfd1934b3ba (patch)
tree0ced5ffffcfeb40a4c9eaec3de5c54112b3e8587 /linux/drivers/media/dvb
parent5d8c76ab0473a0fc700328cd24b3a368170c4ea2 (diff)
downloadmediapointer-dvb-s2-430ac70af636094b7ac61f10ec0dfcfd1934b3ba.tar.gz
mediapointer-dvb-s2-430ac70af636094b7ac61f10ec0dfcfd1934b3ba.tar.bz2
From: Ye Jianjun (Joey) <joeyye@trident.com.cn>
Fix: copy frontend_ops before modifying Signed-off-by: Ye Jianjun (Joey) <joeyye@trident.com.cn> Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/dtt200u-fe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dtt200u-fe.c b/linux/drivers/media/dvb/dvb-usb/dtt200u-fe.c
index b032523b0..0a94ec22a 100644
--- a/linux/drivers/media/dvb/dvb-usb/dtt200u-fe.c
+++ b/linux/drivers/media/dvb/dvb-usb/dtt200u-fe.c
@@ -18,6 +18,7 @@ struct dtt200u_fe_state {
struct dvb_frontend_parameters fep;
struct dvb_frontend frontend;
+ struct dvb_frontend_ops ops;
};
static int dtt200u_fe_read_status(struct dvb_frontend* fe, fe_status_t *stat)
@@ -163,8 +164,9 @@ struct dvb_frontend* dtt200u_fe_attach(struct dvb_usb_device *d)
deb_info("attaching frontend dtt200u\n");
state->d = d;
+ memcpy(&state->ops,&dtt200u_fe_ops,sizeof(struct dvb_frontend_ops));
- state->frontend.ops = &dtt200u_fe_ops;
+ state->frontend.ops = &state->ops;
state->frontend.demodulator_priv = state;
goto success;