[PATCH 4.9 097/310] block: fix an error code in add_partition()