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

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

Merge "swr-wcd-ctrl: add check for end of soundwire port list"

parents ccc5d0ca 9ceb8ed4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -753,7 +753,7 @@ inc_loop:
			list_del(&mport->list);
			kfree(mport);
		}
		if (!mport_next) {
		if (!mport_next || (&mport_next->list == &swrm->mport_list)) {
			dev_err(swrm->dev, "%s: end of list\n", __func__);
			break;
		}