fix v4l2 buffer ioctl fallbacks for pre-5.6 kernels
authorArnd Bergmann <arnd@kernel.org>
Mon, 14 Dec 2020 02:43:16 +0000 (21:43 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 15 Dec 2020 01:36:03 +0000 (20:36 -0500)
commit30f55067a6dcba602797c24e020a6a9c8ba22180
tree0eefe900b487b62197071f658e65320c2378b098
parentdb981ffb3e242e32e13520fbaf47e91ae88d5ff4
fix v4l2 buffer ioctl fallbacks for pre-5.6 kernels

commit 2412638bb39eb799b2600393bbd71cca8ae96bb2 got the size of struct
v4l2_buffer wrong and omitted the tv_usec member slot from the offset
list, so the ioctl numbers never matched and fallback code path was
never taken. this caused the affected ioctls to fail with ENOTTY on
kernels not new enough to have the native time64 ioctls.
src/misc/ioctl.c