diff options
| author | Jianxin Xiong <[email protected]> | 2020-11-02 19:51:58 -0800 |
|---|---|---|
| committer | Christian König <[email protected]> | 2020-11-05 16:58:19 +0100 |
| commit | 00efd65a65968fddd9816315ce190c1fa3bfcd29 (patch) | |
| tree | de354dbe0db2db5108373d8fa266dba009a52337 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 2b5b95b1ff3d70a95013a45e3b5b90f1daf42348 (diff) | |
dma-buf: Fix static checker warning
Here is the warning message:
drivers/dma-buf/dma-buf.c:917 dma_buf_map_attachment()
error: 'sg_table' dereferencing possible ERR_PTR()
Fix by adding error checking before dereferencing the pointer.
Fixes: ac80cd17a615 ("dma-buf: Clarify that dma-buf sg lists are page aligned")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Jianxin Xiong <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/398485/
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions