projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6ee124
)
gpu: ion: Fix bug in ion_buffer_add
author
Rebecca Schultz Zavin
<rebecca@android.com>
Fri, 1 Jul 2011 01:09:05 +0000
(18:09 -0700)
committer
Rebecca Schultz Zavin
<rebecca@android.com>
Fri, 1 Jul 2011 01:09:38 +0000
(18:09 -0700)
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/ion/ion.c
b/drivers/gpu/ion/ion.c
index 108469b8478940b088556720438a52e597110e60..1d65d796dc7645d94a18526ff562e58483af047c 100644
(file)
--- a/
drivers/gpu/ion/ion.c
+++ b/
drivers/gpu/ion/ion.c
@@
-116,13
+116,14
@@
static void ion_buffer_add(struct ion_device *dev,
parent = *p;
entry = rb_entry(parent, struct ion_buffer, node);
- if (buffer < entry)
+ if (buffer < entry)
{
p = &(*p)->rb_left;
- else if (buffer > entry)
+ } else if (buffer > entry) {
p = &(*p)->rb_right;
- else
+ } else {
pr_err("%s: buffer already found.", __func__);
BUG();
+ }
}
rb_link_node(&buffer->node, parent, p);