summaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorJianxin Xiong <jianxin.xiong@intel.com>2020-11-02 19:51:58 -0800
committerChristian König <christian.koenig@amd.com>2020-11-05 16:58:19 +0100
commit00efd65a65968fddd9816315ce190c1fa3bfcd29 (patch)
treede354dbe0db2db5108373d8fa266dba009a52337 /mm/mmap.c
parent2b5b95b1ff3d70a95013a45e3b5b90f1daf42348 (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 <dan.carpenter@oracle.com> Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/398485/
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions