Skip to content
Commit b85cdd49 authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC]: Fix bus handling in build_device_resources().



We mistakedly modify 'bus' in the innermost loop.  What
should happen is that at each register index iteration,
we start with the same 'bus'.

So preserve it's value at the top level, and use a loop
local variable 'dbus' for iteration.

This bug causes registers other than the first to be
decoded improperly.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 562aa1d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment