• M
    media: v4l2-ioctl: fix some "too small" warnings · 912d2f82
    Mauro Carvalho Chehab 提交于
    While the code there is right, it produces three false positives:
    	drivers/media/v4l2-core/v4l2-ioctl.c:2868 video_usercopy() error: copy_from_user() 'parg' too small (128 vs 16383)
    	drivers/media/v4l2-core/v4l2-ioctl.c:2868 video_usercopy() error: copy_from_user() 'parg' too small (128 vs 16383)
    	drivers/media/v4l2-core/v4l2-ioctl.c:2876 video_usercopy() error: memset() 'parg' too small (128 vs 16383)
    
    Store the ioctl size on a cache var, in order to suppress those.
    Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
    912d2f82
v4l2-ioctl.c 94.2 KB