]> git.baikalelectronics.ru Git - kernel.git/commit
md: Fix integrity registration error when no devices are capable
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Mar 2011 00:09:12 +0000 (20:09 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Mar 2011 00:53:29 +0000 (17:53 -0700)
commitec0406e0766db81d599cd93486f6bcce69035b51
treed01104f97740c19daf01f49ae170df821a43252c
parent7f52ce2defb1e479a00ec4778859d078c55d2788
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 <cate@cateee.net>
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c