aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c
diff options
context:
space:
mode:
authorGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-05-27 08:32:07 +0100
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-05-27 08:32:07 +0100
commit0e4daea31d8312dd9f957a62717d4b5f31ef494c (patch)
treea9edacaf51413354d0df35f6faf7f002a6f34bf0 /drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c
parentserial: Make uart_remove_one_port() return void (diff)
parentLinux 6.4-rc3 (diff)
downloadlinux-0e4daea31d8312dd9f957a62717d4b5f31ef494c.tar.gz
linux-0e4daea31d8312dd9f957a62717d4b5f31ef494c.tar.bz2
linux-0e4daea31d8312dd9f957a62717d4b5f31ef494c.zip
Merge 6.4-rc3 into tty-next
We need the serial/tty fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c')
-rw-r--r--drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c
index 1a300e14f350..064f186ae81b 100644
--- a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c
+++ b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c
@@ -44,14 +44,18 @@ static ssize_t store_min_max_freq_khz(struct uncore_data *data,
int min_max)
{
unsigned int input;
+ int ret;
if (kstrtouint(buf, 10, &input))
return -EINVAL;
mutex_lock(&uncore_lock);
- uncore_write(data, input, min_max);
+ ret = uncore_write(data, input, min_max);
mutex_unlock(&uncore_lock);
+ if (ret)
+ return ret;
+
return count;
}