Camera: Fix potentail race condition
mDistortionMappers are used in callback thread and request thread. However, callback thread does not query before calling mDistortionMappers[mId.c_str()], this may cause insertion to the map and mDistortionMappers.find may run at the same time. Bug: 153506800, 153457587 Test: Camera CTS Change-Id: I899033bacd355113fbad3e8f7ec76482aa147158
Loading
Please register or sign in to comment