Re: libfdt: Fix use of uninitialized variable in fdt_get_path()

Started by Jon Loeliger on Aug 31, 2007

open the first message on its own page

Message details and related content
So, like, the other day David Gibson mumbled:
My recent implemenetation of fdt_get_path() had a bug - the while loop
tested offset which was unitialized on the first iteration.  Depending
on code surrounding the call, this could cause fdt_get_path() to
return incorrect results.

This patch corrects the problem by applying some more correct thinking
to the loop condition.

Signed-off-by: David Gibson <redacted>
Applied.

Thanks,
jdl
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help