]> git.baikalelectronics.ru Git - kernel.git/commit
media: pvrusb2: Replaced simple_strtol() with kstrtoint()
authorLiu Shixin <liushixin2@huawei.com>
Thu, 27 May 2021 13:17:01 +0000 (15:17 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:53 +0000 (10:07 +0200)
commit381355789bc879ca44ed76c6db15d5b39e922258
tree880fbf08e790942a026a2df07ddc484bf64e4406
parent3a581e0df52e4038335c9bf2151374718a5b72d2
media: pvrusb2: Replaced simple_strtol() with kstrtoint()

It looks like that memcpy() is a superfluous operation in
parse_token()/parse_mtoken(). Simple these two functions and
use kstrtoint() instead of simple_strtol() to avoid data
overflow.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/pvrusb2/pvrusb2-ctrl.c