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

Commit cf6a1b2d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: rpmh: Always bug_on() upon timeout in rpmh_write_batch()"

parents fc8e06c4 6ca25f85
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
 */

#include <linux/atomic.h>
@@ -478,12 +478,10 @@ int rpmh_write_batch(const struct device *dev, enum rpmh_state state,
			 * we've returned from this function.
			 */
			rpmh_rsc_debug(ctrlr_to_drv(ctrlr), &compls[i]);
			ret = -ETIMEDOUT;
			goto exit;
			BUG_ON(1);
		}
	}

exit:
	kfree(ptr);

	return ret;