* [linux-next:master 6935/11192] drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:538:25-29: ERROR: aconnector is NULL but dereferenced. (fwd)
@ 2023-10-10 19:24 Julia Lawall
2023-10-10 19:52 ` Hamza Mahfooz
0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2023-10-10 19:24 UTC (permalink / raw)
To: Hamza Mahfooz, Alex Deucher, Rodrigo Siqueira
Cc: Linux Memory Management List, oe-kbuild-all
See line 538.
julia
---------- Forwarded message ----------
Date: Wed, 11 Oct 2023 01:30:34 +0800
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Julia Lawall <julia.lawall@inria.fr>
Subject: [linux-next:master 6935/11192]
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:538:25-29: ERROR:
aconnector is NULL but dereferenced.
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: Hamza Mahfooz <hamza.mahfooz@amd.com>
CC: Alex Deucher <alexander.deucher@amd.com>
CC: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: c0a6edb636cba9c0d1db966a54d910a02e52e4be
commit: 5d72e247e58c966f4e50cffebf0d414de7fc90ed [6935/11192] drm/amd/display: switch DC over to the new DRM logging macros
:::::: branch date: 12 hours ago
:::::: commit date: 2 weeks ago
config: x86_64-randconfig-104-20231010 (https://download.01.org/0day-ci/archive/20231011/202310110104.H593hwLd-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231011/202310110104.H593hwLd-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202310110104.H593hwLd-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:538:25-29: ERROR: aconnector is NULL but dereferenced.
vim +538 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
4562236b3bc0a28 Harry Wentland 2017-09-12 534
c84dec2fe8837fa Harry Wentland 2017-09-05 535 struct amdgpu_dm_connector *aconnector = link->priv;
4562236b3bc0a28 Harry Wentland 2017-09-12 536
4562236b3bc0a28 Harry Wentland 2017-09-12 537 if (!aconnector) {
5d72e247e58c966 Hamza Mahfooz 2023-09-20 @538 drm_dbg_dp(aconnector->base.dev,
5d72e247e58c966 Hamza Mahfooz 2023-09-20 539 "Failed to find connector for link!\n");
4562236b3bc0a28 Harry Wentland 2017-09-12 540 return false;
4562236b3bc0a28 Harry Wentland 2017-09-12 541 }
4562236b3bc0a28 Harry Wentland 2017-09-12 542
4648cf5fc8c78d7 Hamza Mahfooz 2023-03-08 543 return drm_dp_dpcd_read(&aconnector->dm_dp_aux.aux, address, data,
4648cf5fc8c78d7 Hamza Mahfooz 2023-03-08 544 size) == size;
4562236b3bc0a28 Harry Wentland 2017-09-12 545 }
4562236b3bc0a28 Harry Wentland 2017-09-12 546
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [linux-next:master 6935/11192] drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:538:25-29: ERROR: aconnector is NULL but dereferenced. (fwd)
2023-10-10 19:24 [linux-next:master 6935/11192] drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:538:25-29: ERROR: aconnector is NULL but dereferenced. (fwd) Julia Lawall
@ 2023-10-10 19:52 ` Hamza Mahfooz
0 siblings, 0 replies; 2+ messages in thread
From: Hamza Mahfooz @ 2023-10-10 19:52 UTC (permalink / raw)
To: Julia Lawall, Alex Deucher, Rodrigo Siqueira
Cc: Linux Memory Management List, oe-kbuild-all
On 10/10/23 15:24, Julia Lawall wrote:
> See line 538.
>
> julia
>
> ---------- Forwarded message ----------
> Date: Wed, 11 Oct 2023 01:30:34 +0800
> From: kernel test robot <lkp@intel.com>
> To: oe-kbuild@lists.linux.dev
> Cc: lkp@intel.com, Julia Lawall <julia.lawall@inria.fr>
> Subject: [linux-next:master 6935/11192]
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:538:25-29: ERROR:
> aconnector is NULL but dereferenced.
>
> BCC: lkp@intel.com
> CC: oe-kbuild-all@lists.linux.dev
> CC: Linux Memory Management List <linux-mm@kvack.org>
> TO: Hamza Mahfooz <hamza.mahfooz@amd.com>
> CC: Alex Deucher <alexander.deucher@amd.com>
> CC: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: c0a6edb636cba9c0d1db966a54d910a02e52e4be
> commit: 5d72e247e58c966f4e50cffebf0d414de7fc90ed [6935/11192] drm/amd/display: switch DC over to the new DRM logging macros
> :::::: branch date: 12 hours ago
> :::::: commit date: 2 weeks ago
> config: x86_64-randconfig-104-20231010 (https://download.01.org/0day-ci/archive/20231011/202310110104.H593hwLd-lkp@intel.com/config)
> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
> reproduce: (https://download.01.org/0day-ci/archive/20231011/202310110104.H593hwLd-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Reported-by: Julia Lawall <julia.lawall@inria.fr>
> | Closes: https://lore.kernel.org/r/202310110104.H593hwLd-lkp@intel.com/
>
> cocci warnings: (new ones prefixed by >>)
>>> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:538:25-29: ERROR: aconnector is NULL but dereferenced.
>
> vim +538 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
>
> 4562236b3bc0a28 Harry Wentland 2017-09-12 534
> c84dec2fe8837fa Harry Wentland 2017-09-05 535 struct amdgpu_dm_connector *aconnector = link->priv;
> 4562236b3bc0a28 Harry Wentland 2017-09-12 536
> 4562236b3bc0a28 Harry Wentland 2017-09-12 537 if (!aconnector) {
> 5d72e247e58c966 Hamza Mahfooz 2023-09-20 @538 drm_dbg_dp(aconnector->base.dev,
> 5d72e247e58c966 Hamza Mahfooz 2023-09-20 539 "Failed to find connector for link!\n");
Can you send out a patch that drops drm_dbg_dp() from here? Since, it
should only be reachable before hw init and it is expected at that
point, so it doesn't provide any meaningful insights.
> 4562236b3bc0a28 Harry Wentland 2017-09-12 540 return false;
> 4562236b3bc0a28 Harry Wentland 2017-09-12 541 }
> 4562236b3bc0a28 Harry Wentland 2017-09-12 542
> 4648cf5fc8c78d7 Hamza Mahfooz 2023-03-08 543 return drm_dp_dpcd_read(&aconnector->dm_dp_aux.aux, address, data,
> 4648cf5fc8c78d7 Hamza Mahfooz 2023-03-08 544 size) == size;
> 4562236b3bc0a28 Harry Wentland 2017-09-12 545 }
> 4562236b3bc0a28 Harry Wentland 2017-09-12 546
>
--
Hamza
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-10 19:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-10 19:24 [linux-next:master 6935/11192] drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:538:25-29: ERROR: aconnector is NULL but dereferenced. (fwd) Julia Lawall
2023-10-10 19:52 ` Hamza Mahfooz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox