Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
md: Fix integrity registration error when no devices are capable
We incorrectly returned -EINVAL when none of the devices in the array had an integrity profile. This in turn prevented mdadm from starting the metadevice. Fix this so we only return errors on mismatched profiles and memory allocation failures. Reported-by: Giacomo Catenazzi <[email protected]> Reported-by: Thomas Gleixner <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information