alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [asoc:topic/intel 37/40] sound/soc/intel/skylake/skl-debug.c:53:1-6: WARNING: invalid free of devm_ allocated data (fwd)
@ 2017-07-01 14:56 Julia Lawall
  2017-07-03  3:25 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2017-07-01 14:56 UTC (permalink / raw)
  To: Vinod Koul
  Cc: alsa-devel, Mark Brown, Guneshwor Singh, kbuild-all, Vunny Sodhi

This doesn't show enough of the context to see the allocation, but please
check.

thanks,
julia

---------- Forwarded message ----------
Date: Sat, 1 Jul 2017 02:40:21 +0800
From: kbuild test robot <fengguang.wu@intel.com>
To: kbuild@01.org
Cc: Julia Lawall <julia.lawall@lip6.fr>
Subject: [asoc:topic/intel 37/40] sound/soc/intel/skylake/skl-debug.c:53:1-6:
    WARNING: invalid free of devm_ allocated data

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/intel
head:   bdd0384a5ada8bb5745e5f29c10a5ba88827efad
commit: 5cdf6c09ca9de3f037ba2d770206f3374459602d [37/40] ASoC: Intel: Skylake: Add debugfs support
:::::: branch date: 6 hours ago
:::::: commit date: 6 hours ago

>> sound/soc/intel/skylake/skl-debug.c:53:1-6: WARNING: invalid free of devm_ allocated data

git remote add asoc https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
git remote update asoc
git checkout 5cdf6c09ca9de3f037ba2d770206f3374459602d
vim +53 sound/soc/intel/skylake/skl-debug.c

5cdf6c09 Vinod Koul 2017-06-30  37  				   skl->platform->component.debugfs_root);
5cdf6c09 Vinod Koul 2017-06-30  38  	if (IS_ERR(d->fs) || !d->fs) {
5cdf6c09 Vinod Koul 2017-06-30  39  		dev_err(&skl->pci->dev, "debugfs root creation failed\n");
5cdf6c09 Vinod Koul 2017-06-30  40  		return NULL;
5cdf6c09 Vinod Koul 2017-06-30  41  	}
5cdf6c09 Vinod Koul 2017-06-30  42
5cdf6c09 Vinod Koul 2017-06-30  43  	d->skl = skl;
5cdf6c09 Vinod Koul 2017-06-30  44  	d->dev = &skl->pci->dev;
5cdf6c09 Vinod Koul 2017-06-30  45
5cdf6c09 Vinod Koul 2017-06-30  46  	return d;
5cdf6c09 Vinod Koul 2017-06-30  47  }
5cdf6c09 Vinod Koul 2017-06-30  48
5cdf6c09 Vinod Koul 2017-06-30  49  void skl_debugfs_exit(struct skl_debug *d)
5cdf6c09 Vinod Koul 2017-06-30  50  {
5cdf6c09 Vinod Koul 2017-06-30  51  	debugfs_remove_recursive(d->fs);
5cdf6c09 Vinod Koul 2017-06-30  52
5cdf6c09 Vinod Koul 2017-06-30 @53  	kfree(d);
5cdf6c09 Vinod Koul 2017-06-30  54
5cdf6c09 Vinod Koul 2017-06-30  55  }

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [asoc:topic/intel 37/40] sound/soc/intel/skylake/skl-debug.c:53:1-6: WARNING: invalid free of devm_ allocated data (fwd)
  2017-07-01 14:56 [asoc:topic/intel 37/40] sound/soc/intel/skylake/skl-debug.c:53:1-6: WARNING: invalid free of devm_ allocated data (fwd) Julia Lawall
@ 2017-07-03  3:25 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2017-07-03  3:25 UTC (permalink / raw)
  To: Julia Lawall
  Cc: alsa-devel, Mark Brown, Guneshwor Singh, kbuild-all, Vunny Sodhi

On Sat, Jul 01, 2017 at 04:56:46PM +0200, Julia Lawall wrote:
> This doesn't show enough of the context to see the allocation, but please
> check.

Yeah this looks right to me, will send a patch to remove the kfree.

Thanks for reporting

> 
> thanks,
> julia
> 
> ---------- Forwarded message ----------
> Date: Sat, 1 Jul 2017 02:40:21 +0800
> From: kbuild test robot <fengguang.wu@intel.com>
> To: kbuild@01.org
> Cc: Julia Lawall <julia.lawall@lip6.fr>
> Subject: [asoc:topic/intel 37/40] sound/soc/intel/skylake/skl-debug.c:53:1-6:
>     WARNING: invalid free of devm_ allocated data
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/intel
> head:   bdd0384a5ada8bb5745e5f29c10a5ba88827efad
> commit: 5cdf6c09ca9de3f037ba2d770206f3374459602d [37/40] ASoC: Intel: Skylake: Add debugfs support
> :::::: branch date: 6 hours ago
> :::::: commit date: 6 hours ago
> 
> >> sound/soc/intel/skylake/skl-debug.c:53:1-6: WARNING: invalid free of devm_ allocated data
> 
> git remote add asoc https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
> git remote update asoc
> git checkout 5cdf6c09ca9de3f037ba2d770206f3374459602d
> vim +53 sound/soc/intel/skylake/skl-debug.c
> 
> 5cdf6c09 Vinod Koul 2017-06-30  37  				   skl->platform->component.debugfs_root);
> 5cdf6c09 Vinod Koul 2017-06-30  38  	if (IS_ERR(d->fs) || !d->fs) {
> 5cdf6c09 Vinod Koul 2017-06-30  39  		dev_err(&skl->pci->dev, "debugfs root creation failed\n");
> 5cdf6c09 Vinod Koul 2017-06-30  40  		return NULL;
> 5cdf6c09 Vinod Koul 2017-06-30  41  	}
> 5cdf6c09 Vinod Koul 2017-06-30  42
> 5cdf6c09 Vinod Koul 2017-06-30  43  	d->skl = skl;
> 5cdf6c09 Vinod Koul 2017-06-30  44  	d->dev = &skl->pci->dev;
> 5cdf6c09 Vinod Koul 2017-06-30  45
> 5cdf6c09 Vinod Koul 2017-06-30  46  	return d;
> 5cdf6c09 Vinod Koul 2017-06-30  47  }
> 5cdf6c09 Vinod Koul 2017-06-30  48
> 5cdf6c09 Vinod Koul 2017-06-30  49  void skl_debugfs_exit(struct skl_debug *d)
> 5cdf6c09 Vinod Koul 2017-06-30  50  {
> 5cdf6c09 Vinod Koul 2017-06-30  51  	debugfs_remove_recursive(d->fs);
> 5cdf6c09 Vinod Koul 2017-06-30  52
> 5cdf6c09 Vinod Koul 2017-06-30 @53  	kfree(d);
> 5cdf6c09 Vinod Koul 2017-06-30  54
> 5cdf6c09 Vinod Koul 2017-06-30  55  }
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

-- 
~Vinod

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-03  3:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-01 14:56 [asoc:topic/intel 37/40] sound/soc/intel/skylake/skl-debug.c:53:1-6: WARNING: invalid free of devm_ allocated data (fwd) Julia Lawall
2017-07-03  3:25 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).