* [drm-msm:msm-next-plus-fixes 69/72] drivers/gpu/drm/msm/dp/dp_drm.c:246:2-7: WARNING: invalid free of devm_ allocated data
@ 2021-12-10 11:25 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-10 11:25 UTC (permalink / raw)
To: Kuogee Hsieh; +Cc: kbuild-all, linux-kernel, Rob Clark, Abhinav Kumar
tree: https://gitlab.freedesktop.org/drm/msm.git msm-next-plus-fixes
head: 1c1dcb9d8883f42ea116d99f78e42a7c399f8278
commit: 8a3b4c17f863cde8e8743edd8faffe916c49b960 [69/72] drm/msm/dp: employ bridge mechanism for display enable and disable
config: nds32-randconfig-c004-20211208 (https://download.01.org/0day-ci/archive/20211210/202112101918.adnak8vR-lkp@intel.com/config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cocci warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/msm/dp/dp_drm.c:246:2-7: WARNING: invalid free of devm_ allocated data
vim +246 drivers/gpu/drm/msm/dp/dp_drm.c
225
226 struct drm_bridge *msm_dp_bridge_init(struct msm_dp *dp_display, struct drm_device *dev,
227 struct drm_encoder *encoder)
228 {
229 int rc;
230 struct msm_dp_bridge *dp_bridge;
231 struct drm_bridge *bridge;
232
233 dp_bridge = devm_kzalloc(dev->dev, sizeof(*dp_bridge), GFP_KERNEL);
234 if (!dp_bridge)
235 return ERR_PTR(-ENOMEM);
236
237 dp_bridge->dp_display = dp_display;
238
239 bridge = &dp_bridge->bridge;
240 bridge->funcs = &dp_bridge_ops;
241 bridge->encoder = encoder;
242
243 rc = drm_bridge_attach(encoder, bridge, NULL, DRM_BRIDGE_ATTACH_NO_CONNECTOR);
244 if (rc) {
245 DRM_ERROR("failed to attach bridge, rc=%d\n", rc);
> 246 kfree(dp_bridge);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-10 11:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-10 11:25 [drm-msm:msm-next-plus-fixes 69/72] drivers/gpu/drm/msm/dp/dp_drm.c:246:2-7: WARNING: invalid free of devm_ allocated data kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox