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

Commit cd13c3dd authored by Vaisakh Murali's avatar Vaisakh Murali Committed by Daniel Jacob Chittoor
Browse files

drivers/tty: release wakelock when serial unregisters or fails



The wakelock is held and is never destroyed.

Change-Id: Id55c96c922a5cc5b311d822a48f889a12bdf654e
Signed-off-by: default avatarVaisakh Murali <mvaisakh@statixos.com>
parent 58efbb5e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3712,6 +3712,7 @@ static int msm_geni_serial_probe(struct platform_device *pdev)
		wakeup_source_unregister(dev_port->geni_wake);
exit_geni_serial_probe:
	IPC_LOG_MSG(dev_port->ipc_log_misc, "%s: ret:%d\n", __func__, ret);
	wakeup_source_unregister(dev_port->geni_wake);
	return ret;
}