mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-17 19:14:47 +00:00
extcon: max8997: Check the pointer of platform data to protect null pointer error
This patch check the pointer of platform data to protect kernel panic when platform data is not used and code clean. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
This commit is contained in:
parent
f6161aa153
commit
810d601f07
1 changed files with 34 additions and 22 deletions
Loading…
Add table
Add a link
Reference in a new issue