[PATCH 4.17 267/336] staging: ks7010: fix error handling in ks7010_upload_firmware