diff options
| author | Jiasheng Jiang <[email protected]> | 2022-07-05 11:26:33 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-07-08 15:42:55 +0200 |
| commit | 82f76a4a720791d889de775b5f7541d601efc8bd (patch) | |
| tree | 6d137dfd82e8f36f39bbd80a9a1197103bc49d8f /tools/perf/scripts/python | |
| parent | 086c28ab7c5699256aced0049aae9c42f1410313 (diff) | |
intel_th: msu-sink: Potential dereference of null pointer
The return value of dma_alloc_coherent() needs to be checked.
To avoid use of null pointer in sg_set_buf() in case of the failure of
alloc.
Fixes: f220df66f676 ("intel_th: msu-sink: An example msu buffer "sink"")
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Jiasheng Jiang <[email protected]>
Signed-off-by: Alexander Shishkin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions