From: Patrick Boettcher Date: Fri, 8 Jul 2005 00:58:17 +0000 (-0700) Subject: [PATCH] dvb: usb: digitv memcpy fix X-Git-Tag: v2.6.13-rc3~168 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=97432808ee367e15485e55c734ba04ca290a306d;p=linux-2.6-omap-h63xx.git [PATCH] dvb: usb: digitv memcpy fix Fix memcpy copying into the wrong destination. Thanks to Allan Third for reporting. Signed-off-by: Patrick Boettcher Signed-off-by: Johannes Stezenbach Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/media/dvb/dvb-usb/digitv.c b/drivers/media/dvb/dvb-usb/digitv.c index f272d34f772..8155a26f0dd 100644 --- a/drivers/media/dvb/dvb-usb/digitv.c +++ b/drivers/media/dvb/dvb-usb/digitv.c @@ -37,7 +37,7 @@ static int digitv_ctrl_msg(struct dvb_usb_device *d, dvb_usb_generic_write(d,sndbuf,7); } else { dvb_usb_generic_rw(d,sndbuf,7,rcvbuf,7,10); - memcpy(&rbuf,&rcvbuf[3],rlen); + memcpy(rbuf,&rcvbuf[3],rlen); } return 0; }