* [PATCH, RESEND] az6007: fix incorrect memcpy
@ 2012-07-24 16:02 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2012-07-24 16:02 UTC (permalink / raw)
To: linux-media, akpm
From: Alan Cox <alan@linux.intel.com>
Some parts of the C language are subtle and evil. This is one example.
Reported-by: dcb314@hotmail.com
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44041
Signed-off-by: Alan Cox <alan@linux.intel.com>
---
drivers/media/dvb/dvb-usb/az6007.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c
index 8ffcad0..86861e6 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])
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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-24 15:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-24 16:02 [PATCH, RESEND] az6007: fix incorrect memcpy Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox