aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-03-08 09:31:00 (GMT)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-08 10:23:45 (GMT)
commit50718972f555cc7a061162003f1bc59ef6635db1 (patch)
tree4799be4cbf4a5672d7b278ed358fbdd96ef7672d
parente68854a2588a923b31eebce348f8020374843f8e (diff)
media: em28xx-cards: fix em28xx_duplicate_dev()old/cs_50718972f555
There is a double sizeof() typo here so we don't duplicate the struct properly. Fixes: be7fd3c3a8c5 ("media: em28xx: Hauppauge DualHD second tuner functionality") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
-rw-r--r--drivers/media/usb/em28xx/em28xx-cards.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c
index 6e82478..6e0e67d 100644
--- a/drivers/media/usb/em28xx/em28xx-cards.c
+++ b/drivers/media/usb/em28xx/em28xx-cards.c
@@ -3515,7 +3515,7 @@ static int em28xx_duplicate_dev(struct em28xx *dev)
dev->dev_next = NULL;
return -ENOMEM;
}
- memcpy(sec_dev, dev, sizeof(sizeof(*sec_dev)));
+ memcpy(sec_dev, dev, sizeof(*sec_dev));
/* Check to see next free device and mark as used */
do {
nr = find_first_zero_bit(em28xx_devused, EM28XX_MAXBOARDS);

Privacy Policy