linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hamza Mahfooz <hamza.mahfooz@amd.com>
To: Julia Lawall <julia.lawall@inria.fr>,
	Alex Deucher <alexander.deucher@amd.com>,
	Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Linux Memory Management List <linux-mm@kvack.org>,
	oe-kbuild-all@lists.linux.dev
Subject: 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)
Date: Tue, 10 Oct 2023 15:52:06 -0400	[thread overview]
Message-ID: <52b2aa0d-d864-428e-b7da-90f7a38657df@amd.com> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2310102123460.3328@hadrien>

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



      reply	other threads:[~2023-10-10 19:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-10 19:24 Julia Lawall
2023-10-10 19:52 ` Hamza Mahfooz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52b2aa0d-d864-428e-b7da-90f7a38657df@amd.com \
    --to=hamza.mahfooz@amd.com \
    --cc=Rodrigo.Siqueira@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=julia.lawall@inria.fr \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox