ASoC: fix return error type

The original fix used -EIO as the error return code but the function
signatures had unsigned int as the return type.
The updated fix uses -1 as the error return code instead of -EIO so the
error return code is more clearly defined.

It fixes CVE-2016-6690.

Bug: 28838221
Change-Id: Ib0cc139d9785fbe0808dfd127901bfdec6cc4467
Tracked-On: https://jira01.devtools.intel.com/browse/AW-3101
Signed-off-by: Louis Fabien <fabienx.louis@intel.com>
Reviewed-on: https://android.intel.com/553589
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
Tested-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
Reviewed-by: Maalem, Saadi <saadi.maalem@intel.com>
1 file changed