mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "soc: qcom: rpmh: check return value of __fill_rpmh_msg"
This commit is contained in:
commit
bd56fa8346
1 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved. */
|
||||
/* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */
|
||||
|
||||
#include <linux/atomic.h>
|
||||
#include <linux/bug.h>
|
||||
|
|
@ -450,7 +450,10 @@ int rpmh_write_batch(const struct device *dev, enum rpmh_state state,
|
|||
req->rpm_msgs = rpm_msgs;
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
__fill_rpmh_msg(rpm_msgs + i, state, cmd, n[i]);
|
||||
ret = __fill_rpmh_msg(rpm_msgs + i, state, cmd, n[i]);
|
||||
if (ret)
|
||||
goto exit;
|
||||
|
||||
cmd += n[i];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue