From: kbuild test robot <lkp@intel.com>
To: Jia-Ju Bai <baijiaju1990@163.com>
Cc: kbuild-all@01.org, awalls@md.metrocast.net, mchehab@kernel.org,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
Jia-Ju Bai <baijiaju1990@163.com>
Subject: Re: [PATCH] ivtv: Fix a sleep-in-atomic bug in snd_ivtv_pcm_hw_free
Date: Thu, 1 Jun 2017 13:53:38 +0800 [thread overview]
Message-ID: <201706011302.A0laNATn%fengguang.wu@intel.com> (raw)
In-Reply-To: <1496287517-20625-1-git-send-email-baijiaju1990@163.com>
[-- Attachment #1: Type: text/plain, Size: 2192 bytes --]
Hi Jia-Ju,
[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v4.12-rc3 next-20170531]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Jia-Ju-Bai/ivtv-Fix-a-sleep-in-atomic-bug-in-snd_ivtv_pcm_hw_free/20170601-131112
base: git://linuxtv.org/media_tree.git master
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
drivers/media//pci/ivtv/ivtv-alsa-pcm.c: In function 'snd_ivtv_pcm_hw_free':
>> drivers/media//pci/ivtv/ivtv-alsa-pcm.c:274:2: warning: 'dma_area' may be used uninitialized in this function [-Wmaybe-uninitialized]
vfree(dma_area);
^
vim +/dma_area +274 drivers/media//pci/ivtv/ivtv-alsa-pcm.c
258 params_buffer_bytes(params));
259 }
260
261 static int snd_ivtv_pcm_hw_free(struct snd_pcm_substream *substream)
262 {
263 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream);
264 unsigned long flags;
265 unsigned char *dma_area;
266
267 spin_lock_irqsave(&itvsc->slock, flags);
268 if (substream->runtime->dma_area) {
269 dprintk("freeing pcm capture region\n");
270 dma_area = substream->runtime->dma_area;
271 substream->runtime->dma_area = NULL;
272 }
273 spin_unlock_irqrestore(&itvsc->slock, flags);
> 274 vfree(dma_area);
275
276 return 0;
277 }
278
279 static int snd_ivtv_pcm_prepare(struct snd_pcm_substream *substream)
280 {
281 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream);
282
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 50141 bytes --]
prev parent reply other threads:[~2017-06-01 5:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-01 3:25 Jia-Ju Bai
2017-06-01 5:53 ` kbuild test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201706011302.A0laNATn%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=awalls@md.metrocast.net \
--cc=baijiaju1990@163.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®