Applying the patch available at https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1320402 worked for me.
Applying the patch available at https:/ /bugs.launchpad .net/ubuntu/ +source/ mdadm/+ bug/1320402
worked for me.