md: Fix integrity registration error when no devices are capable
Martin K. Petersen authored

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>
89078d57
Name Last commit Last update
..
Kconfig dm: add flakey target
Makefile dm: add flakey target
bitmap.c Merge branch 'for-2.6.39/core' of git://git.kernel.dk/linux-2.6-block
bitmap.h md: use sector_t in bitmap_get_counter
dm-bio-record.h dm: preserve bi_io_vec when resubmitting bios
dm-crypt.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm
dm-delay.c dm: convert workqueues to alloc_ordered
dm-exception-store.c dm snapshot: test chunk size against both origin and snapshot
dm-exception-store.h dm snapshot: test chunk size against both origin and snapshot
dm-flakey.c dm: add flakey target
dm-io.c block: kill off REQ_UNPLUG
dm-ioctl.c dm ioctl: add flag to wipe buffers for secure data
dm-kcopyd.c block: kill off REQ_UNPLUG
dm-linear.c dm: use dm_target_offset macro
dm-log-userspace-base.c dm log userspace: add version number to comms
dm-log-userspace-transfer.c netlink: kill eff_cap from struct netlink_skb_parms
dm-log-userspace-transfer.h dm log: userspace add luid to distinguish between concurrent log instances
dm-log.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm
dm-mpath.c dm mpath: allow table load with no priority groups
dm-mpath.h dm mpath: remove is_active from struct dm_path
dm-path-selector.c dm: path selector use module refcount directly
dm-path-selector.h dm mpath: add start_io and nr_bytes to path selectors
dm-queue-length.c dm mpath: add queue length load balancer
dm-raid.c block: remove per-queue plugging
dm-raid1.c block: remove per-queue plugging
dm-region-hash.c
dm-round-robin.c
dm-service-time.c
dm-snap-persistent.c
dm-snap-transient.c
dm-snap.c
dm-stripe.c
dm-sysfs.c
dm-table.c
dm-target.c
dm-uevent.c
dm-uevent.h
dm-zero.c
dm.c
dm.h
faulty.c
linear.c
linear.h
md.c
md.h
multipath.c
multipath.h
raid0.c
raid0.h
raid1.c
raid1.h
raid10.c
raid10.h
raid5.c
raid5.h