OSDN Git Service

media: strscpy() returns a negative value on failure unlike strlcpy().
authorHans Petter Selasky <hps@selasky.org>
Fri, 25 Jan 2019 13:01:46 +0000 (08:01 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Mar 2019 20:33:46 +0000 (16:33 -0400)
commite7dd89cef16021ad0dd5a590d3d2090bf65e3ec2
tree5561f46ece2e6ae9308dcf9a3cd55607643f4f80
parent6f3f3e11999b192e39404c49b584b7aca4cb1ecd
media: strscpy() returns a negative value on failure unlike strlcpy().

strscpy() returns a negative value on failure unlike strlcpy(),
so fix the WARN_ON accordingly.

Signed-off-by: Hans Petter Selasky <hps@selasky.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: added commit message]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-ioctl.c