File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -626,8 +626,10 @@ static int plic_probe(struct fwnode_handle *fwnode)
626
626
627
627
handler -> enable_save = kcalloc (DIV_ROUND_UP (nr_irqs , 32 ),
628
628
sizeof (* handler -> enable_save ), GFP_KERNEL );
629
- if (!handler -> enable_save )
629
+ if (!handler -> enable_save ) {
630
+ error = - ENOMEM ;
630
631
goto fail_cleanup_contexts ;
632
+ }
631
633
done :
632
634
for (hwirq = 1 ; hwirq <= nr_irqs ; hwirq ++ ) {
633
635
plic_toggle (handler , hwirq , 0 );
@@ -639,8 +641,10 @@ static int plic_probe(struct fwnode_handle *fwnode)
639
641
640
642
priv -> irqdomain = irq_domain_create_linear (fwnode , nr_irqs + 1 ,
641
643
& plic_irqdomain_ops , priv );
642
- if (WARN_ON (!priv -> irqdomain ))
644
+ if (WARN_ON (!priv -> irqdomain )) {
645
+ error = - ENOMEM ;
643
646
goto fail_cleanup_contexts ;
647
+ }
644
648
645
649
/*
646
650
* We can have multiple PLIC instances so setup global state
You can’t perform that action at this time.
0 commit comments