diff options
| author | Christophe JAILLET <[email protected]> | 2017-08-07 08:30:33 +0200 |
|---|---|---|
| committer | Chanwoo Choi <[email protected]> | 2017-08-07 15:34:20 +0900 |
| commit | 1cf76c4eeb07ba31a03066c6540d96fd64d7a34f (patch) | |
| tree | 4ac92b7a94731c59b9c4e664474d1d939b4fd1a6 /tools/perf/util/c++/clang-test.cpp | |
| parent | 5c27036d2b05d6bc763809871b58a48e9fa554fa (diff) | |
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 <[email protected]>
Signed-off-by: Chanwoo Choi <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions