diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-08-07 08:30:33 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2017-08-07 08:34:20 +0200 |
commit | 1cf76c4eeb07ba31a03066c6540d96fd64d7a34f (patch) | |
tree | 4ac92b7a94731c59b9c4e664474d1d939b4fd1a6 /drivers/extcon/extcon-rt8973a.c | |
parent | extcon: Convert to using %pOF instead of full_name (diff) | |
download | linux-1cf76c4eeb07ba31a03066c6540d96fd64d7a34f.tar.xz linux-1cf76c4eeb07ba31a03066c6540d96fd64d7a34f.zip |
extcon: cros-ec: Fix a potential NULL pointer dereference
Return -ENOMEM in case of memory allocation failure. This avoids a NULL
pointer dereference.
Fixes: c69831666109 ("extcon: cros-ec: Add extcon-cros-ec driver to support display out")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-rt8973a.c')
0 files changed, 0 insertions, 0 deletions