Commit 78f290d8 authored by Pete Zaitcev's avatar Pete Zaitcev Committed by David S. Miller

[SUNZILOG]: Fix off-by-1 in spinlock initialization loop.

parent 0d28ed33
...@@ -1484,7 +1484,7 @@ static void __init sunzilog_prepare(void) ...@@ -1484,7 +1484,7 @@ static void __init sunzilog_prepare(void)
/* /*
* Temporary fix. * Temporary fix.
*/ */
for (channel = 0; channel < NUM_CHANNELS - 1; channel++) for (channel = 0; channel < NUM_CHANNELS; channel++)
spin_lock_init(&sunzilog_port_table[channel].port.lock); spin_lock_init(&sunzilog_port_table[channel].port.lock);
sunzilog_irq_chain = up = &sunzilog_port_table[0]; sunzilog_irq_chain = up = &sunzilog_port_table[0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment