[PORT FROM R2] [AUDIO] Back port from ALSA-lib version 1.0.25 memory corruption fix
[PORT FROM R2] [AUDIO] Back port from ALSA-lib version 1.0.25 memory corruption fix

BZ: 22286

Bad error management fixed in "snd_ctl_hw_open" function.
This was causing access to memory that was not allocated.

Change-Id: Ie77fcdd6c1e7577e70f8fdfe9b0fadfeddc5a8fd
Signed-off-by: ndifolcx <daea5b6ad457a41bcd50260c070421f2d0ab05ea@intel.com>
Reviewed-on: http://android.intel.com:8080/41702
Reviewed-by: Barthes, FabienX <07cfc97bf6dde07045dd9fe6b5c4bff90058b2fb@intel.com>
Tested-by: Mendi, EduardoX <b40c9d15800f992c7a5b80f7ad58290469e00290@intel.com>
Reviewed-by: buildbot <4f01036b9437d59848e062e621b13556bac09299@intel.com>
Tested-by: buildbot <4f01036b9437d59848e062e621b13556bac09299@intel.com>

android-ia/platform_external_alsa-lib,android-ia/platform_external_alsa-lib,android-ia/platform_external_alsa-lib