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

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

Merge "extcon: Release locking when sending the notification of connector state"

parents 7632b479 214fb6b5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -440,10 +440,11 @@ int extcon_sync(struct extcon_dev *edev, unsigned int id)
		return index;

	spin_lock_irqsave(&edev->lock, flags);

	state = !!(edev->state & BIT(index));
	spin_unlock_irqrestore(&edev->lock, flags);
	raw_notifier_call_chain(&edev->nh[index], state, edev);

	spin_lock_irqsave(&edev->lock, flags);
	/* This could be in interrupt handler */
	prop_buf = (char *)get_zeroed_page(GFP_ATOMIC);
	if (!prop_buf) {