aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/m2m-deinterlace.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2019-07-04 19:57:43 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-07-23 08:52:40 -0400
commitf2180adfd7a3d0715726474411bdf925010d4c29 (patch)
treeca1018f7dabd309249e68a1b346f025e82e64be2 /drivers/media/platform/m2m-deinterlace.c
parentmedia: cobalt: remove redundant assignment to variable data (diff)
downloadlinux-dev-f2180adfd7a3d0715726474411bdf925010d4c29.tar.xz
linux-dev-f2180adfd7a3d0715726474411bdf925010d4c29.zip
media: m2m-deinterlace: Fix misuse of strscpy
Probable cut&paste typo - use the correct field size. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/m2m-deinterlace.c')
-rw-r--r--drivers/media/platform/m2m-deinterlace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c
index bbf664546697..d2c3926269e9 100644
--- a/drivers/media/platform/m2m-deinterlace.c
+++ b/drivers/media/platform/m2m-deinterlace.c
@@ -433,7 +433,7 @@ static int vidioc_querycap(struct file *file, void *priv,
{
strscpy(cap->driver, MEM2MEM_NAME, sizeof(cap->driver));
strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card));
- strscpy(cap->bus_info, MEM2MEM_NAME, sizeof(cap->card));
+ strscpy(cap->bus_info, MEM2MEM_NAME, sizeof(cap->bus_info));
return 0;
}