Skip to content
Snippets Groups Projects
Commit 89078d57 authored by Martin K. Petersen's avatar Martin K. Petersen Committed by Linus Torvalds
Browse files

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: default avatarGiacomo Catenazzi <cate@cateee.net>
Reported-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7de8e573
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment