diff options
author | Sidath Senanayake <sidaths@google.com> | 2021-01-29 14:51:21 +0000 |
---|---|---|
committer | Sidath Senanayake <sidaths@google.com> | 2021-01-29 14:51:21 +0000 |
commit | 201c8bfb4637601363b6e9283f3bdc510711a226 (patch) | |
tree | afa8b543c81e78e5b82156be5d5266060c71e069 /mali_kbase/mali_kbase_trace_gpu_mem.c | |
parent | 72f2457ff7355ff0389efe5bc9cec3365362d8c4 (diff) | |
download | gpu-201c8bfb4637601363b6e9283f3bdc510711a226.tar.gz |
Mali Valhall DDK r28p0 KMD
Provenance:
f61f43e2c (collaborate/EAC/v_r28p0)
VX504X08X-BU-00000-r28p0-01eac0 - Android DDK
VX504X08X-SW-99006-r28p0-01eac0 - Android Renderscript AOSP parts
VX504X08X-BU-60000-r28p0-01eac0 - Android Document Bundle
VX504X08X-DC-11001-r28p0-01eac0 - Valhall Android DDK Software Errata
Signed-off-by: Sidath Senanayake <sidaths@google.com>
Change-Id: Iafabf59869cc06a23d69668f6ae1a152cb86b7f3
Diffstat (limited to 'mali_kbase/mali_kbase_trace_gpu_mem.c')
-rw-r--r-- | mali_kbase/mali_kbase_trace_gpu_mem.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/mali_kbase/mali_kbase_trace_gpu_mem.c b/mali_kbase/mali_kbase_trace_gpu_mem.c index 7669895..d0e9f0b 100644 --- a/mali_kbase/mali_kbase_trace_gpu_mem.c +++ b/mali_kbase/mali_kbase_trace_gpu_mem.c @@ -127,31 +127,31 @@ static bool kbase_capture_dma_buf_mapping(struct kbase_context *kctx, } if (unique_buf_imported) { - struct kbase_dma_buf *buf_node = - kzalloc(sizeof(*buf_node), GFP_KERNEL); + struct kbase_dma_buf *new_buf_node = + kzalloc(sizeof(*new_buf_node), GFP_KERNEL); - if (buf_node == NULL) { + if (new_buf_node == NULL) { dev_err(kctx->kbdev->dev, "Error allocating memory for kbase_dma_buf\n"); /* Dont account for it if we fail to allocate memory */ unique_buf_imported = false; } else { struct rb_node **new = &(root->rb_node), *parent = NULL; - buf_node->dma_buf = dma_buf; - buf_node->import_count = 1; + new_buf_node->dma_buf = dma_buf; + new_buf_node->import_count = 1; while (*new) { - struct kbase_dma_buf *node; + struct kbase_dma_buf *new_node; parent = *new; - node = rb_entry(parent, struct kbase_dma_buf, - dma_buf_node); - if (dma_buf < node->dma_buf) + new_node = rb_entry(parent, struct kbase_dma_buf, + dma_buf_node); + if (dma_buf < new_node->dma_buf) new = &(*new)->rb_left; else new = &(*new)->rb_right; } - rb_link_node(&buf_node->dma_buf_node, parent, new); - rb_insert_color(&buf_node->dma_buf_node, root); + rb_link_node(&new_buf_node->dma_buf_node, parent, new); + rb_insert_color(&new_buf_node->dma_buf_node, root); } } else if (!WARN_ON(!buf_node)) { buf_node->import_count++; |