diff options
author | Luke Nowakowski-Krijger <lnowakow@eng.ucsd.edu> | 2019-07-17 16:19:46 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-07-25 12:23:35 +0200 |
commit | d4a6a9537bc32811486282206ecfb7c53754b74d (patch) | |
tree | 922d20b5ed372ec8759cff83c7eaf9ae2ff92151 /Documentation/media | |
parent | media: staging: media: cedrus: Fix misuse of GENMASK macro (diff) | |
download | linux-d4a6a9537bc32811486282206ecfb7c53754b74d.tar.xz linux-d4a6a9537bc32811486282206ecfb7c53754b74d.zip |
media: hdpvr: Add device num check and handling
Add hdpvr device num check and error handling
We need to increment the device count atomically before we checkout a
device to make sure that we do not reach the max count, otherwise we get
out-of-bounds errors as reported by syzbot.
Reported-and-tested-by: syzbot+aac8d0d7205f112045d2@syzkaller.appspotmail.com
Signed-off-by: Luke Nowakowski-Krijger <lnowakow@eng.ucsd.edu>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'Documentation/media')
0 files changed, 0 insertions, 0 deletions