mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-10-01 00:00:50 +02:00
If DMA attachment fail during fb_mmap, all ION memory will get free. It is necessary to reset the fbmem and fb_attachemnt pointer to NULL, otherwise during shutdown will perform another free and causing issue. CRs-Fixed: 1090244 CAF-Change-Id: I92affcf2ce039eecfc72b7c191e058f37815c726 Signed-off-by: Benjamin Chan <bkchan@codeaurora.org> [haggertk]: Backport to 3.4/msm8974 CVE-2017-7373 Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org> Change-Id: Ie90f94fe5016667f6eb984dbbedd05ebc261e16f