[PATCH] dvb: usb: digitv memcpy fix
authorPatrick Boettcher <pb@linuxtv.org>
Fri, 8 Jul 2005 00:58:17 +0000 (17:58 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:24:01 +0000 (18:24 -0700)
Fix memcpy copying into the wrong destination.  Thanks to Allan Third for
reporting.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/dvb-usb/digitv.c

index f272d34f7725d8a1d99cffd33ebcb64dde53a1c8..8155a26f0ddfe5924c8cca6efd976e95379558fd 100644 (file)
@@ -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;
 }