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

Skip to content
Commit 1cf76c4e authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Chanwoo Choi
Browse files

extcon: cros-ec: Fix a potential NULL pointer dereference



Return -ENOMEM in case of memory allocation failure. This avoids a NULL
pointer dereference.

Fixes: c6983166 ("extcon: cros-ec: Add extcon-cros-ec driver to support display out")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 5c27036d
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