[PATCH AUTOSEL for 3.18 040/102] block: fix an error code in add_partition()