Unverified Commit 4769fc98 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!7786 powerpc/powernv: Add a null pointer check in opal_event_init()

parents 7e97eec5 d96c8a62
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -282,6 +282,8 @@ int __init opal_event_init(void)
		else
			name = kasprintf(GFP_KERNEL, "opal");

		if (!name)
			continue;
		/* Install interrupt handler */
		rc = request_irq(r->start, opal_interrupt, r->flags & IRQD_TRIGGER_MASK,
				 name, NULL);