projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c79a3c3
)
[media] az6007: fix incorrect memcpy
author
Alan Cox
<alan@lxorguk.ukuu.org.uk>
Tue, 24 Jul 2012 15:02:46 +0000
(12:02 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Tue, 31 Jul 2012 00:04:58 +0000
(21:04 -0300)
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>
drivers/media/dvb/dvb-usb/az6007.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/dvb-usb/az6007.c
b/drivers/media/dvb/dvb-usb/az6007.c
index 8ffcad000ad3fb146eb7a1e5292dc902a4745a28..86861e6f86d23053ebe990aa58b24e7d377d7d45 100644
(file)
--- 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])
int ret;
ret = az6007_read(d, AZ6007_READ_DATA, 6, 0, st->data, 6);
- memcpy(mac, st->data,
sizeof(mac)
);
+ memcpy(mac, st->data,
6
);
if (ret > 0)
deb_info("%s: mac is %pM\n", __func__, mac);