M2: bugfix: Fix a kernel bug causing ioctl mismatches in the media
layer.

Thanks to jonpry for finding the root of the problem.