diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2012-07-24 11:02:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 20:04:58 -0400 |
commit | 5a7a570bf4205d2cc36c5abb5498df601dd828e3 (patch) | |
tree | c3a8c4fbcc842310df933be437d55141d398e770 | |
parent | c79a3c352469ea0a9cb2ed9e32c1932a7ff66c5c (diff) |
[media] az6007: fix incorrect memcpy
Some parts of the C language are subtle and evil. This is one example.
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44041
Reported-by: dcb314@hotmail.com
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/dvb-usb/az6007.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c index 8ffcad000ad3..86861e6f86d2 100644 --- a/drivers/media/dvb/dvb-usb/az6007.c +++ b/drivers/media/dvb/dvb-usb/az6007.c | |||
@@ -590,7 +590,7 @@ static int az6007_read_mac_addr(struct dvb_usb_device *d, u8 mac[6]) | |||
590 | int ret; | 590 | int ret; |
591 | 591 | ||
592 | ret = az6007_read(d, AZ6007_READ_DATA, 6, 0, st->data, 6); | 592 | ret = az6007_read(d, AZ6007_READ_DATA, 6, 0, st->data, 6); |
593 | memcpy(mac, st->data, sizeof(mac)); | 593 | memcpy(mac, st->data, 6); |
594 | 594 | ||
595 | if (ret > 0) | 595 | if (ret > 0) |
596 | deb_info("%s: mac is %pM\n", __func__, mac); | 596 | deb_info("%s: mac is %pM\n", __func__, mac); |