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

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

Merge "ota_crypto: Add NULL pointer check for new_req variable"

parents 8de2594b 0ef4f1a1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -239,6 +239,9 @@ static void req_done(unsigned long data)
		if (!list_empty(&podev->ready_commands)) {
			new_req = container_of(podev->ready_commands.next,
						struct ota_async_req, rlist);
			if (!new_req)
				break;

			list_del(&new_req->rlist);
			pqce->active_command = new_req;
			spin_unlock_irqrestore(&podev->lock, flags);