diff options
| author | Xiaoke Wang <[email protected]> | 2021-12-13 16:27:15 +0800 |
|---|---|---|
| committer | Mika Westerberg <[email protected]> | 2021-12-15 13:39:08 +0300 |
| commit | 3cc1c6de458e0e58c413c3c35802ca96e55bbdbe (patch) | |
| tree | f5911457823a0343411ea07e9a804406ccb33bc2 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | fea783e6e82c9f3713aea425eddcac9611c069ee (diff) | |
thunderbolt: Check return value of kmemdup() in icm_handle_event()
kmemdup() may return NULL if there is not enough memory available. Check
this and bail out early in this case. While there move INIT_WORK() to
happen after we have allocated all the memory needed for the event
handling to avoid doing unnecessary work.
Signed-off-by: Xiaoke Wang <[email protected]>
Signed-off-by: Mika Westerberg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions