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

Commit 41b69c70 authored by Thomas Klein's avatar Thomas Klein Committed by Jeff Garzik
Browse files

ehea: Fixed possible nullpointer access



Fixed possible nullpointer access in event queue processing

Signed-off-by: default avatarThomas Klein <tklein@de.ibm.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent bb3a6449
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -575,6 +575,7 @@ static struct ehea_port *ehea_get_port(struct ehea_adapter *adapter,
	int i;

	for (i = 0; i < adapter->num_ports; i++)
		if (adapter->port[i])
	                if (adapter->port[i]->logical_port_id == logical_port)
				return adapter->port[i];
	return NULL;