[PATCH v4 06/14] smegw01: Only commit to new partition if update was successful