commit | d75138ce2720382c6d983408e9150479cae899b4 | [log] [tgz] |
---|---|---|
author | Rajaram Gudivada <rajaramg@codeaurora.org> | Tue Nov 04 20:49:43 2014 +0530 |
committer | Rajaram Gudivada <rajaramg@codeaurora.org> | Tue Nov 04 21:06:39 2014 +0530 |
tree | e7999b9f46894fb60a91ac2dc19690d9dbad234c | |
parent | a0644d5d7046805ada002d3643ce90c99a7a002f [diff] |
QCamera2: Return Error when deferred allocation fails Issue: In some race conditions, metadata/snapshot/postview deferred allocation fails but still mm_stream_init_bufs trying to access allocated buffers and resulting in FATAL exception. Fix: Initialize mRegFlags & mBufDefs to NULL during stream constructor and check same in get_bufs_deffered(), If its NULL, pass it to calling function. Change-Id: I283178b28354c71e432db2382b468df1fe4e5d0b