search for: _prev_

Displaying 2 results from an estimated 2 matches for "_prev_".

2018 Feb 13
2
[drm-nouveau-mmu] question about potential NULL pointer dereference
...size += next->size; 983 rb_erase(&next->tree, &vmm->root); 984 list_del(&next->head); 985 kfree(next); 986 } 987 } 988} The issue here is that in case _node_ returns NULL, _prev_ is not being null checked, hence there is a potential null pointer dereference at line 970. Notice that _next_ is being null checked at line 980, so I wonder if _prev_ should be checked the same as _next_. The fact that both _next_ and next->part are null checked, makes me wonder if in...
2018 Feb 13
0
[drm-nouveau-mmu] question about potential NULL pointer dereference
...rb_erase(&next->tree, &vmm->root); > 984 list_del(&next->head); > 985 kfree(next); > 986 } > 987 } > 988} > > The issue here is that in case _node_ returns NULL, _prev_ is not being null > checked, hence there is a potential null pointer dereference at line 970. > > Notice that _next_ is being null checked at line 980, so I wonder if _prev_ > should be checked the same as _next_. > > The fact that both _next_ and next->part are null checked, m...