[sailus-media-tree:media-ref 37/39] drivers/media/pci/intel/ipu3/ipu3-cio2.c:1698:1-6: WARNING: invalid free of devm_ allocated data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://linuxtv.org/sailus/media_tree.git media-ref
head:   f94611d22fa335b7dabf2e7356b4486e5a1f8907
commit: fe3ba53caaf90a9499ff44949efc31f6cb34d7e0 [37/39] unref test
config: x86_64-randconfig-r053-20240208 (https://download.01.org/0day-ci/archive/20240208/202402082104.K7l4QATL-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0

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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402082104.K7l4QATL-lkp@xxxxxxxxx/

cocci warnings: (new ones prefixed by >>)
>> drivers/media/pci/intel/ipu3/ipu3-cio2.c:1698:1-6: WARNING: invalid free of devm_ allocated data
   drivers/media/pci/intel/ipu3/ipu3-cio2.c:1742:1-6: WARNING: invalid free of devm_ allocated data

vim +1698 drivers/media/pci/intel/ipu3/ipu3-cio2.c

803abec64ef9d3 drivers/media/pci/intel/ipu3/ipu3-cio2-main.c Daniel Scally 2021-01-07  1685  
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1686  static void cio2_media_release(struct media_device *mdev)
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1687  {
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1688  	struct cio2_device *cio2 =
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1689  		container_of(mdev, struct cio2_device, media_dev);
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1690  
c24173726c0e70 drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2023-10-05  1691  	printk("cio2 media release\n");
c24173726c0e70 drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2023-10-05  1692  
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1693  	v4l2_async_nf_cleanup(&cio2->notifier);
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1694  	cio2_queues_exit(cio2);
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1695  	cio2_fbpt_exit_dummy(cio2);
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1696  	mutex_destroy(&cio2->lock);
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1697  
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20 @1698  	kfree(cio2);
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1699  }
1812a9376b1c6b drivers/media/pci/intel/ipu3/ipu3-cio2.c      Sakari Ailus  2022-12-20  1700  

:::::: The code at line 1698 was first introduced by commit
:::::: 1812a9376b1c6b78744fd6af0a05c2077977f6a9 media: ipu3-cio2: Release the cio2 device context by media device callback

:::::: TO: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
:::::: CC: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux