mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Vladis Dronov <vdronov@redhat.com>
Cc: kbuild-all@01.org, Jaroslav Kysela <perex@perex.cz>,
	Takashi Iwai <tiwai@suse.com>,
	alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
	linux-sound@vger.kernel.org, Vladis Dronov <vdronov@redhat.com>
Subject: Re: [PATCH] ALSA: usb-audio: Fix double-free in snd_usb_add_audio_stream()
Date: Thu, 31 Mar 2016 03:38:11 +0800	[thread overview]
Message-ID: <201603310311.2zy1BAPO%fengguang.wu@intel.com> (raw)
In-Reply-To: <1459364602-28997-2-git-send-email-vdronov@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1889 bytes --]

Hi Vladis,

[auto build test WARNING on sound/for-next]
[also build test WARNING on v4.6-rc1 next-20160330]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Vladis-Dronov/ALSA-usb-audio-Fix-double-free-in-snd_usb_add_audio_stream/20160331-030636
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: x86_64-acpi-redef (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   sound/usb/quirks.c: In function 'create_fixed_stream_quirk':
>> sound/usb/quirks.c:204:2: warning: label 'error_after_add_audio_stream' defined but not used [-Wunused-label]
     error_after_add_audio_stream:
     ^

vim +/error_after_add_audio_stream +204 sound/usb/quirks.c

   188		 */
   189	
   190		fp->protocol = altsd->bInterfaceProtocol;
   191	
   192		if (fp->datainterval == 0)
   193			fp->datainterval = snd_usb_parse_datainterval(chip, alts);
   194		if (fp->maxpacksize == 0)
   195			fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize);
   196		usb_set_interface(chip->dev, fp->iface, 0);
   197		snd_usb_init_pitch(chip, fp->iface, alts, fp);
   198		snd_usb_init_sample_rate(chip, fp->iface, alts, fp, fp->rate_max);
   199		return 0;
   200	
   201	 error:
   202		kfree(fp);
   203		kfree(rate_table);
 > 204	 error_after_add_audio_stream:
   205		return err;
   206	}
   207	
   208	static int create_auto_pcm_quirk(struct snd_usb_audio *chip,
   209					 struct usb_interface *iface,
   210					 struct usb_driver *driver)
   211	{
   212		struct usb_host_interface *alts;

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27534 bytes --]

  reply	other threads:[~2016-03-30 19:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-30 19:03 Vladis Dronov
2016-03-30 19:03 ` Vladis Dronov
2016-03-30 19:38   ` kbuild test robot [this message]
2016-03-30 20:31   ` Takashi Iwai
2016-03-31  9:50     ` Takashi Iwai
2016-03-31 12:36       ` Vladis Dronov
2016-03-31 12:57         ` Takashi Iwai
2016-03-31 14:03           ` Vladis Dronov
2016-03-31 14:20             ` Takashi Iwai
2016-03-31 16:05               ` Vladis Dronov
2016-03-31 16:13                 ` Takashi Iwai

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=201603310311.2zy1BAPO%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    --cc=vdronov@redhat.com \
    /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®