Fix more bugs found during static code analysis

Fix miscellaneous bugs found by static source code analysis

Change-Id: Ia84018c213d4731d51044f84c74407a5aac51326
6 files changed
tree: c479d6accc329154fd19d7d2576a59dd44209276
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig