commit | 7b38ae02f3c6c3c666ed4f580db689302f998756 | [log] [tgz] |
---|---|---|
author | MichaĆ Orynicz <michal.orynicz@sonymobile.com> | Tue Oct 25 09:19:28 2016 +0200 |
committer | Alain Vongsouvanh <alainv@google.com> | Thu Nov 03 15:42:19 2016 +0000 |
tree | 3aedfe060fa1e0cefb98a93899f1eeeb389340a6 | |
parent | dc871cfc2095577a8760abe529aeff02b5908b57 [diff] |
Prevent race conditions in synaptics fw update Based on ANDROID-31252388 code snippet. The global variable fwu is accessible in the fwu_sysfs_image_size_store and fwu_sysfs_store_image functions without any locks. This results in a potential race condition leading to a heap overflow. Add locks to prevent the potential race condition. Depends-On: Ibdbaf5da1400a9a81e128ff79dec3edba654c86d Change-Id: I0947ab423d90991afdae8ffba43ea4356606acb9