diff options
| author | Luke Nowakowski-Krijger <lnowakow@eng.ucsd.edu> | 2019-07-17 10:19:46 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-05 12:27:44 +0200 |
| commit | 84a6dd572b18177bc66dd90b4a865eb3f8c0a1c0 (patch) | |
| tree | e6db741cb615cfb5689a3f2680f9d6471ed9fd0e /include/uapi/linux/errqueue.h | |
| parent | 78335bc692d72f54348e95ee62e1942401faf995 (diff) | |
media: hdpvr: Add device num check and handling
[ Upstream commit d4a6a9537bc32811486282206ecfb7c53754b74d ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/uapi/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
