CC: [email protected]
CC: Linux Memory Management List <[email protected]>
TO: Kuogee Hsieh <[email protected]>
CC: Rob Clark <[email protected]>
CC: Abhinav Kumar <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   2bd48302750c652889a2604b3df8b591c1d3af08
commit: 8a3b4c17f863cde8e8743edd8faffe916c49b960 [4977/9257] drm/msm/dp: employ 
bridge mechanism for display enable and disable
:::::: branch date: 11 hours ago
:::::: commit date: 2 weeks ago
config: microblaze-randconfig-m031-20211222 
(https://download.01.org/0day-ci/archive/20211223/[email protected]/config)
compiler: microblaze-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
drivers/gpu/drm/msm/dp/dp_drm.c:246 msm_dp_bridge_init() warn: passing devm_ 
allocated variable to kfree. 'dp_bridge'

vim +/dp_bridge +246 drivers/gpu/drm/msm/dp/dp_drm.c

8a3b4c17f863cd Kuogee Hsieh 2021-12-07  225  
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  226  struct drm_bridge 
*msm_dp_bridge_init(struct msm_dp *dp_display, struct drm_device *dev,
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  227                     struct 
drm_encoder *encoder)
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  228  {
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  229     int rc;
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  230     struct msm_dp_bridge *dp_bridge;
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  231     struct drm_bridge *bridge;
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  232  
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  233     dp_bridge = 
devm_kzalloc(dev->dev, sizeof(*dp_bridge), GFP_KERNEL);
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  234     if (!dp_bridge)
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  235             return ERR_PTR(-ENOMEM);
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  236  
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  237     dp_bridge->dp_display = 
dp_display;
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  238  
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  239     bridge = &dp_bridge->bridge;
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  240     bridge->funcs = &dp_bridge_ops;
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  241     bridge->encoder = encoder;
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  242  
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  243     rc = drm_bridge_attach(encoder, 
bridge, NULL, DRM_BRIDGE_ATTACH_NO_CONNECTOR);
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  244     if (rc) {
8a3b4c17f863cd Kuogee Hsieh 2021-12-07  245             DRM_ERROR("failed to 
attach bridge, rc=%d\n", rc);
8a3b4c17f863cd Kuogee Hsieh 2021-12-07 @246             kfree(dp_bridge);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to