[PATCH -next] drm/drm_dp_mst:remove set but not used variable 'origlen'

2020-01-18 Thread Bo YU
/helper: add Displayport multi-stream helper (v0.6)) Signed-off-by: Bo YU --- drivers/gpu/drm/drm_dp_mst_topology.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 4b74193b89ce..4c76e673206b

Re: [PATCH v2] drm: etnaviv: fix strncpy sizeof argument

2019-04-02 Thread Bo YU
On Thu, Mar 28, 2019 at 4:09 PM Bo YU wrote: > > Calling strncpy with a maximum size argument of 64 bytes on destination > array "domain->name" of size 64 bytes might leave the destination string > unterminated. > > Detected by CoverityScan, CID# 1443

[PATCH v2] drm: etnaviv: fix strncpy sizeof argument

2019-03-29 Thread Bo YU
/etnaviv: add infrastructure to query perf counter) Signed-off-by: Bo YU --- v2: accroding to Russell's suggestion, replace strncpy with strlcpy --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/dr

Re: [PATCH] drm: etnaviv: fix strncpy sizeof argument

2019-03-19 Thread Bo YU
On Tue, Mar 19, 2019 at 6:22 PM Russell King - ARM Linux admin wrote: > > On Mon, Mar 18, 2019 at 10:57:55PM -0400, Bo YU wrote: > > Calling strncpy with a maximum size argument of 64 bytes on destination > > array "domain->name" of size 64 bytes mig

[PATCH] drm: etnaviv: fix strncpy sizeof argument

2019-03-19 Thread Bo YU
/etnaviv: add infrastructure to query perf counter) Signed-off-by: Bo YU --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 4227a4006c34..08ca3c

[PATCH] drm/amdgpu: Error handling issues about CHECKED_RETURN

2019-02-14 Thread Bo YU via dri-devel
From: Bo Yu Calling "amdgpu_ring_test_helper" without checking return value Signed-off-by: Bo Yu --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/

Re: [PATCH] drm/amdgpu: Error handling issues about CHECKED_RETURN

2019-02-14 Thread Bo YU via dri-devel
Ok, drop it. On Thu, Feb 14, 2019 at 1:09 PM Zhou, David(ChunMing) wrote: > > > > -Original Message- > > From: Bo YU > > Sent: Thursday, February 14, 2019 12:46 PM > > To: Deucher, Alexander ; Koenig, Christian > > ; Zhou, David(ChunMing) > >