We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26eff0c commit 2887161Copy full SHA for 2887161
1 file changed
so3/devices/irq/gic.c
@@ -658,10 +658,11 @@ static int gic_init(dev_t *dev, int fdt_offset)
658
int prop_len;
659
int cpu;
660
661
- for (cpu = 0; cpu < CONFIG_NR_CPUS; cpu++) {
+ for (cpu = 0; cpu < CONFIG_NR_CPUS; cpu++)
662
+ {
663
spin_lock_init(&per_cpu(intc_lock, cpu));
664
}
-
665
+
666
gic = (gic_t *) malloc(sizeof(gic_t));
667
BUG_ON(!gic);
668
0 commit comments