[PATCH v2 04/10] block/swim: Fix array bounds check