CC: [email protected] CC: [email protected] TO: Arnd Bergmann <[email protected]> CC: Herbert Xu <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 13391c60da3308ed9980de0168f74cce6c62ac1d commit: eebac678556d6927f09a992872f4464cf3aecc76 crypto: ccp -- don't "select" CONFIG_DMADEVICES date: 10 months ago :::::: branch date: 12 hours ago :::::: commit date: 10 months ago config: arm64-randconfig-m031-20210126 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.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/media/platform/omap3isp/isphist.c:526 omap3isp_hist_init() warn: possible memory leak of 'hist_cfg' vim +/hist_cfg +526 drivers/media/platform/omap3isp/isphist.c 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 470 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 471 /* 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 472 * omap3isp_hist_init - Module Initialization. 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 473 */ 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 474 int omap3isp_hist_init(struct isp_device *isp) 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 475 { 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 476 struct ispstat *hist = &isp->isp_hist; 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 477 struct omap3isp_hist_config *hist_cfg; 814434984a5d20 drivers/media/platform/omap3isp/isphist.c Sakari Ailus 2017-07-13 478 int ret; 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 479 814434984a5d20 drivers/media/platform/omap3isp/isphist.c Sakari Ailus 2017-07-13 480 hist_cfg = kzalloc(sizeof(*hist_cfg), GFP_KERNEL); 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 481 if (hist_cfg == NULL) 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 482 return -ENOMEM; 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 483 d83501a0416160 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2012-10-11 484 hist->isp = isp; d83501a0416160 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2012-10-11 485 0ff4e419dc6a40 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2015-02-21 486 if (HIST_CONFIG_DMA) { 0ff4e419dc6a40 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2015-02-21 487 dma_cap_mask_t mask; 0ff4e419dc6a40 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2015-02-21 488 a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 489 /* a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 490 * We need slave capable channel without DMA request line for a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 491 * reading out the data. a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 492 * For this we can use dma_request_chan_by_mask() as we are a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 493 * happy with any channel as long as it is capable of slave a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 494 * configuration. a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 495 */ 0ff4e419dc6a40 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2015-02-21 496 dma_cap_zero(mask); 0ff4e419dc6a40 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2015-02-21 497 dma_cap_set(DMA_SLAVE, mask); a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 498 hist->dma_ch = dma_request_chan_by_mask(&mask); a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 499 if (IS_ERR(hist->dma_ch)) { a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 500 ret = PTR_ERR(hist->dma_ch); a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 501 if (ret == -EPROBE_DEFER) 814434984a5d20 drivers/media/platform/omap3isp/isphist.c Sakari Ailus 2017-07-13 502 goto err; 0ff4e419dc6a40 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2015-02-21 503 a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 504 hist->dma_ch = NULL; 0ff4e419dc6a40 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2015-02-21 505 dev_warn(isp->dev, 0ff4e419dc6a40 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2015-02-21 506 "hist: DMA channel request failed, using PIO\n"); a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 507 } else { 0ff4e419dc6a40 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2015-02-21 508 dev_dbg(isp->dev, "hist: using DMA channel %s\n", 0ff4e419dc6a40 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2015-02-21 509 dma_chan_name(hist->dma_ch)); 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 510 } a9943f6b6b77cf drivers/media/platform/omap3isp/isphist.c Peter Ujfalusi 2016-11-04 511 } 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 512 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 513 hist->ops = &hist_ops; 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 514 hist->priv = hist_cfg; 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 515 hist->event_type = V4L2_EVENT_OMAP3ISP_HIST; 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 516 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 517 ret = omap3isp_stat_init(hist, "histogram", &hist_subdev_ops); 814434984a5d20 drivers/media/platform/omap3isp/isphist.c Sakari Ailus 2017-07-13 518 814434984a5d20 drivers/media/platform/omap3isp/isphist.c Sakari Ailus 2017-07-13 519 err: 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 520 if (ret) { 814434984a5d20 drivers/media/platform/omap3isp/isphist.c Sakari Ailus 2017-07-13 521 if (!IS_ERR_OR_NULL(hist->dma_ch)) 0ff4e419dc6a40 drivers/media/platform/omap3isp/isphist.c Laurent Pinchart 2015-02-21 522 dma_release_channel(hist->dma_ch); 814434984a5d20 drivers/media/platform/omap3isp/isphist.c Sakari Ailus 2017-07-13 523 kfree(hist_cfg); 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 524 } 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 525 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 @526 return ret; 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 527 } 68e342b3068cae drivers/media/video/omap3isp/isphist.c David Cohen 2011-02-12 528 :::::: The code at line 526 was first introduced by commit :::::: 68e342b3068cae62f3378cb4a1d385734ea52784 [media] omap3isp: Statistics :::::: TO: David Cohen <[email protected]> :::::: CC: Mauro Carvalho Chehab <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
