Skip to content
Snippets Groups Projects
  1. Jan 18, 2019
  2. Oct 02, 2018
  3. Jul 02, 2018
  4. Jan 24, 2018
  5. Nov 30, 2017
  6. Nov 29, 2017
  7. Oct 04, 2017
    • Chih-Wei Huang's avatar
      Fix 32-bit app crashing in 64-bit Android · d8b95e3e
      Chih-Wei Huang authored
      
      Seemingly the 64-bit int is always aligned to 8 in LP64.
      But this is not hold in LP32.
      
      Consequently sizeof(gralloc_drm_handle_t) are different
      between LP64 (which is 18 ints) and LP32 (which is 16 ints).
      As a result, 32-bit apps will crash in 64-bit OS since the
      checking handle->base.numInts != GRALLOC_GBM_HANDLE_NUM_INTS
      is true.
      
      Fix it by always aligning 64-bit int to 8. Besides, to avoid
      additional padding, just exchange the order of data_owner
      and modifier. It aligns modifier to 8 natually.
      This makes gralloc_drm_handle_t fit in 16 ints perfectly.
      
      Signed-off-by: default avatarChih-Wei Huang <cwhuang@linux.org.tw>
      d8b95e3e
  8. Sep 15, 2017
    • Rob Herring's avatar
      Android: move libraries to /vendor · 94559640
      Rob Herring authored
      
      As part of Treble project in Android O, all the device specific files have
      to be located in a separate vendor partition. This is done by setting
      LOCAL_PROPRIETARY_MODULE (the name is misleading). This change will not
      break existing platforms without a vendor partition as it will just move
      files to /system/vendor.
      
      Change-Id: I0e863d55406b3e2457bbaded818e7fd4f19f064a
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      94559640
  9. Sep 11, 2017
  10. Sep 06, 2017
  11. Jul 12, 2017
  12. Jul 06, 2017
  13. Jun 22, 2017
  14. Jun 12, 2017
  15. Jun 08, 2017
  16. Apr 13, 2017
  17. Mar 29, 2017
    • John Stultz's avatar
      gbm_gralloc: Remove the invalid int cast and assignment in gbm_mod_perform() · 95c1cfb0
      John Stultz authored
      
      In gbm_mod_perform(), for the cmd GRALLOC_MODULE_PERFORM_GET_USAGE,
      the code takes the third argument, casts it as an int* and then writes
      a zero into what the pointer points to.
      
      The problem with this is that the third argument to that function is
      actually a native_handle_t, so writing zero to the first int in that
      structure ends up overwriting the version value, causing the
      native_handle_t code to see the value as corrupt.
      
      This results in lots of warnings and leaked fds.
      
      Change-Id: If64770c164557b467f76ca97ddc182565730d394
      Cc: Rob Herring <rob.herring@linaro.org>
      Cc: Amit Pundir <amit.pundir@linaro.org>
      Cc: Sumit Semwal <sumit.semwal@linaro.org>
      Cc: Vishal Bhoj <vishal.bhoj@linaro.org>
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      95c1cfb0
  18. Mar 22, 2017
  19. Dec 13, 2016
  20. Oct 25, 2016
  21. Jun 01, 2016
  22. Apr 22, 2016
Loading