• Arnd Bergmann's avatar
    media: v4l2: move v4l2_ext_controls conversion · 6c9361e7
    Arnd Bergmann authored
    The v4l2_ext_controls ioctl handlers use an indirect pointer to an
    incompatible data structure, making the conversion particularly tricky.
    
    Moving the compat implementation to use the new
    v4l2_compat_get_user()/v4l2_compat_put_user() helpers makes it
    noticeably simpler.
    
    In v4l2_compat_get_array_args()/v4l2_compat_put_array_args(),
    the 'file' argument needs to get passed to determine the
    exact format, which is a bit unfortunate, as no other conversion
    needs these.
    
    [hverkuil: fix: WARNING: Missing a blank line after declarations]
    [hverkuil: fix: CHECK: Please don't use multiple blank lines]
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
    6c9361e7
v4l2-compat-ioctl32.c 47.6 KB