Commit 3f127ce1 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

media: em28xx-cards: fix em28xx_duplicate_dev()

There is a double sizeof() typo here so we don't duplicate the struct
properly.

Fixes: be7fd3c3 ("media: em28xx: Hauppauge DualHD second tuner functionality")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
parent 78c4e082
...@@ -3515,7 +3515,7 @@ static int em28xx_duplicate_dev(struct em28xx *dev) ...@@ -3515,7 +3515,7 @@ static int em28xx_duplicate_dev(struct em28xx *dev)
dev->dev_next = NULL; dev->dev_next = NULL;
return -ENOMEM; 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 */ /* Check to see next free device and mark as used */
do { do {
nr = find_first_zero_bit(em28xx_devused, EM28XX_MAXBOARDS); nr = find_first_zero_bit(em28xx_devused, EM28XX_MAXBOARDS);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment