diff options
author | Liu Shixin <liushixin2@huawei.com> | 2021-05-27 15:17:01 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-09-30 10:07:53 +0200 |
commit | a6b63ca455a19f263d56599f4b37cb1d61eb8fee (patch) | |
tree | 880fbf08e790942a026a2df07ddc484bf64e4406 /drivers/nvmem/mxs-ocotp.c | |
parent | 76e21bb8be4f5f987f3006d197196fe6af63f656 (diff) | |
download | linux-stable-a6b63ca455a19f263d56599f4b37cb1d61eb8fee.tar.gz linux-stable-a6b63ca455a19f263d56599f4b37cb1d61eb8fee.tar.bz2 linux-stable-a6b63ca455a19f263d56599f4b37cb1d61eb8fee.zip |
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>
Diffstat (limited to 'drivers/nvmem/mxs-ocotp.c')
0 files changed, 0 insertions, 0 deletions