Loading drivers/gpu/drm/msm/dp/dp_panel.c +1 −1 Original line number Diff line number Diff line Loading @@ -1184,7 +1184,7 @@ static void dp_panel_dsc_prepare_pps_packet(struct dp_panel *dp_panel) static void _dp_panel_dsc_get_num_extra_pclk(struct msm_display_dsc_info *dsc, enum msm_display_compression_ratio ratio) { unsigned int dto_n, dto_d, remainder; unsigned int dto_n = 0, dto_d = 0, remainder; int ack_required, last_few_ack_required, accum_ack; int last_few_pclk, last_few_pclk_required; int start, temp, line_width = dsc->pic_width/2; Loading drivers/gpu/drm/msm/dsi-staging/dsi_phy.c +3 −2 Original line number Diff line number Diff line Loading @@ -1210,12 +1210,13 @@ int dsi_phy_dyn_refresh_cache_phy_timings(struct msm_dsi_phy *phy, u32 *dst, if (!phy || !dst || !size) return -EINVAL; if (phy->hw.ops.dyn_refresh_ops.cache_phy_timings) if (phy->hw.ops.dyn_refresh_ops.cache_phy_timings) { rc = phy->hw.ops.dyn_refresh_ops.cache_phy_timings( &phy->cfg.timing, dst, size); if (rc) pr_err("failed to cache phy timings %d\n", rc); } return rc; } Loading drivers/hwtracing/coresight/coresight-remote-etm.c +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2019, 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 Loading Loading @@ -89,7 +89,7 @@ static int remote_etm_enable(struct coresight_device *csdev, struct coresight_set_etm_req_msg_v01 req; struct coresight_set_etm_resp_msg_v01 resp = { { 0, 0 } }; struct qmi_txn txn; int ret; int ret = 0; mutex_lock(&drvdata->mutex); Loading drivers/platform/msm/gsi/gsi_dbg.c +9 −9 Original line number Diff line number Diff line /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2019, 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 Loading Loading @@ -48,7 +48,7 @@ static ssize_t gsi_dump_evt(struct file *file, if (sizeof(dbg_buff) < count + 1) return -EINVAL; missing = copy_from_user(dbg_buff, buf, count); missing = copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count)); if (missing) return -EFAULT; Loading Loading @@ -161,7 +161,7 @@ static ssize_t gsi_dump_ch(struct file *file, if (sizeof(dbg_buff) < count + 1) return -EINVAL; missing = copy_from_user(dbg_buff, buf, count); missing = copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count)); if (missing) return -EFAULT; Loading Loading @@ -302,7 +302,7 @@ static ssize_t gsi_dump_stats(struct file *file, if (sizeof(dbg_buff) < count + 1) goto error; if (copy_from_user(dbg_buff, buf, count)) if (copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count))) goto error; dbg_buff[count] = '\0'; Loading Loading @@ -361,7 +361,7 @@ static ssize_t gsi_enable_dp_stats(struct file *file, if (sizeof(dbg_buff) < count + 1) goto error; if (copy_from_user(dbg_buff, buf, count)) if (copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count))) goto error; dbg_buff[count] = '\0'; Loading Loading @@ -421,7 +421,7 @@ static ssize_t gsi_set_max_elem_dp_stats(struct file *file, if (sizeof(dbg_buff) < count + 1) goto error; missing = copy_from_user(dbg_buff, buf, count); missing = copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count)); if (missing) goto error; Loading Loading @@ -543,7 +543,7 @@ static ssize_t gsi_rst_stats(struct file *file, if (sizeof(dbg_buff) < count + 1) goto error; if (copy_from_user(dbg_buff, buf, count)) if (copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count))) goto error; dbg_buff[count] = '\0'; Loading Loading @@ -582,7 +582,7 @@ static ssize_t gsi_print_dp_stats(struct file *file, if (sizeof(dbg_buff) < count + 1) goto error; if (copy_from_user(dbg_buff, buf, count)) if (copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count))) goto error; dbg_buff[count] = '\0'; Loading Loading @@ -639,7 +639,7 @@ static ssize_t gsi_enable_ipc_low(struct file *file, if (sizeof(dbg_buff) < count + 1) return -EFAULT; missing = copy_from_user(dbg_buff, ubuf, count); missing = copy_from_user(dbg_buff, ubuf, min(sizeof(dbg_buff), count)); if (missing) return -EFAULT; Loading drivers/platform/msm/ipa/ipa_clients/odu_bridge.c +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2019, 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 Loading Loading @@ -713,7 +713,7 @@ static ssize_t odu_debugfs_hw_bridge_mode_write(struct file *file, if (sizeof(dbg_buff) < count + 1) return -EFAULT; missing = copy_from_user(dbg_buff, ubuf, count); missing = copy_from_user(dbg_buff, ubuf, min(sizeof(dbg_buff), count)); if (missing) return -EFAULT; Loading Loading
drivers/gpu/drm/msm/dp/dp_panel.c +1 −1 Original line number Diff line number Diff line Loading @@ -1184,7 +1184,7 @@ static void dp_panel_dsc_prepare_pps_packet(struct dp_panel *dp_panel) static void _dp_panel_dsc_get_num_extra_pclk(struct msm_display_dsc_info *dsc, enum msm_display_compression_ratio ratio) { unsigned int dto_n, dto_d, remainder; unsigned int dto_n = 0, dto_d = 0, remainder; int ack_required, last_few_ack_required, accum_ack; int last_few_pclk, last_few_pclk_required; int start, temp, line_width = dsc->pic_width/2; Loading
drivers/gpu/drm/msm/dsi-staging/dsi_phy.c +3 −2 Original line number Diff line number Diff line Loading @@ -1210,12 +1210,13 @@ int dsi_phy_dyn_refresh_cache_phy_timings(struct msm_dsi_phy *phy, u32 *dst, if (!phy || !dst || !size) return -EINVAL; if (phy->hw.ops.dyn_refresh_ops.cache_phy_timings) if (phy->hw.ops.dyn_refresh_ops.cache_phy_timings) { rc = phy->hw.ops.dyn_refresh_ops.cache_phy_timings( &phy->cfg.timing, dst, size); if (rc) pr_err("failed to cache phy timings %d\n", rc); } return rc; } Loading
drivers/hwtracing/coresight/coresight-remote-etm.c +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2019, 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 Loading Loading @@ -89,7 +89,7 @@ static int remote_etm_enable(struct coresight_device *csdev, struct coresight_set_etm_req_msg_v01 req; struct coresight_set_etm_resp_msg_v01 resp = { { 0, 0 } }; struct qmi_txn txn; int ret; int ret = 0; mutex_lock(&drvdata->mutex); Loading
drivers/platform/msm/gsi/gsi_dbg.c +9 −9 Original line number Diff line number Diff line /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2019, 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 Loading Loading @@ -48,7 +48,7 @@ static ssize_t gsi_dump_evt(struct file *file, if (sizeof(dbg_buff) < count + 1) return -EINVAL; missing = copy_from_user(dbg_buff, buf, count); missing = copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count)); if (missing) return -EFAULT; Loading Loading @@ -161,7 +161,7 @@ static ssize_t gsi_dump_ch(struct file *file, if (sizeof(dbg_buff) < count + 1) return -EINVAL; missing = copy_from_user(dbg_buff, buf, count); missing = copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count)); if (missing) return -EFAULT; Loading Loading @@ -302,7 +302,7 @@ static ssize_t gsi_dump_stats(struct file *file, if (sizeof(dbg_buff) < count + 1) goto error; if (copy_from_user(dbg_buff, buf, count)) if (copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count))) goto error; dbg_buff[count] = '\0'; Loading Loading @@ -361,7 +361,7 @@ static ssize_t gsi_enable_dp_stats(struct file *file, if (sizeof(dbg_buff) < count + 1) goto error; if (copy_from_user(dbg_buff, buf, count)) if (copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count))) goto error; dbg_buff[count] = '\0'; Loading Loading @@ -421,7 +421,7 @@ static ssize_t gsi_set_max_elem_dp_stats(struct file *file, if (sizeof(dbg_buff) < count + 1) goto error; missing = copy_from_user(dbg_buff, buf, count); missing = copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count)); if (missing) goto error; Loading Loading @@ -543,7 +543,7 @@ static ssize_t gsi_rst_stats(struct file *file, if (sizeof(dbg_buff) < count + 1) goto error; if (copy_from_user(dbg_buff, buf, count)) if (copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count))) goto error; dbg_buff[count] = '\0'; Loading Loading @@ -582,7 +582,7 @@ static ssize_t gsi_print_dp_stats(struct file *file, if (sizeof(dbg_buff) < count + 1) goto error; if (copy_from_user(dbg_buff, buf, count)) if (copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count))) goto error; dbg_buff[count] = '\0'; Loading Loading @@ -639,7 +639,7 @@ static ssize_t gsi_enable_ipc_low(struct file *file, if (sizeof(dbg_buff) < count + 1) return -EFAULT; missing = copy_from_user(dbg_buff, ubuf, count); missing = copy_from_user(dbg_buff, ubuf, min(sizeof(dbg_buff), count)); if (missing) return -EFAULT; Loading
drivers/platform/msm/ipa/ipa_clients/odu_bridge.c +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2019, 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 Loading Loading @@ -713,7 +713,7 @@ static ssize_t odu_debugfs_hw_bridge_mode_write(struct file *file, if (sizeof(dbg_buff) < count + 1) return -EFAULT; missing = copy_from_user(dbg_buff, ubuf, count); missing = copy_from_user(dbg_buff, ubuf, min(sizeof(dbg_buff), count)); if (missing) return -EFAULT; Loading