camera: changes to fix stability issue seen in CTS run

Changes will avoid crash in CTS if camera open fails.  CTS will try to open
multiple camera and we return failure for second camera and make sure to close
previous instance.

Bug: 7385388
Change-Id: I900f3fe1d530edda1d1eac6dc30a43183f47aa72
Signed-off-by: Iliyan Malchev <malchev@google.com>
2 files changed