Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b2010d47 authored by Guangming Cao's avatar Guangming Cao Committed by Congqin Wang
Browse files

[ALPS05444578] ION: fix "pointer is NULL" issue



[Root cause]
When ion get dma_buf by file->private_data in ion_drv_file_to_buffer func,
it maybe NULL and use it to lead to KE.

[Solution]
After get dma_buf by file->private_data, we need to check if it is NULL
and then handle it.

In addition, delete unnecessary check by ion_drv_file_to_buffer.

MTK-Commit-Id: 455b5c0af23178ef21ca95d23668be93c633bf30

Change-Id: I6ea135c9eaed9520440a59dd4c662a9bb8691bc7
Signed-off-by: default avatarGuangming Cao <Guangming.Cao@mediatek.com>
CR-Id: ALPS05444578
Feature: ION
parent 80389505
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment