[PATCH OLK-6.6 11/64] md: merge the check of capabilities into md_ioctl_valid()