cbs_h2645: Return error if writing fails