From: Martin K. Petersen Date: Tue, 29 Mar 2011 00:09:12 +0000 (-0400) Subject: md: Fix integrity registration error when no devices are capable X-Git-Tag: v2.6.39-rc1~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89078d572eb9ce8d4c04264b8b0ba86de0d74c8f;p=pandora-kernel.git 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 Reported-by: Thomas Gleixner Signed-off-by: Martin K. Petersen Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed