Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b61dd51 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: iio: imu: Add NULL check before using 'irq_get_irq_data'"

parents ad00c58d e471d9ca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -538,6 +538,8 @@ int st_asm330lhh_fifo_setup(struct st_asm330lhh_hw *hw)
	bool irq_active_low;
	int i, err;

	if (!irq_get_irq_data(hw->irq))
		return -EINVAL;
	irq_type = irqd_get_trigger_type(irq_get_irq_data(hw->irq));
	if (irq_type == IRQF_TRIGGER_NONE)
		irq_type = IRQF_TRIGGER_HIGH;