[PATCH 17/30] staging: sw_sync: Fix error paths