login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
January
»
8
Re: [PATCH] usb: usbmixer error path fix
view
thread
Previous message: [
thread
] [
date
] [author]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Takashi Iwai
Subject:
Re: [PATCH] usb: usbmixer error path fix
Date: Monday, January 8, 2007 - 3:48 am
At Tue, 2 Jan 2007 01:13:46 +0100, Mariusz Kozlowski wrote:
quoted text
> > Hello, > > Without the patch below namelist[0] will not be freed in case > of kmalloc error. > > Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Thanks, I applied it to ALSA tree now. This should appear in the next push round... Takashi
quoted text
> > sound/usb/usbmixer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -upr linux-2.6.20-rc2-mm1-a/sound/usb/usbmixer.c linux-2.6.20-rc2-mm1-b/sound/usb/usbmixer.c > --- linux-2.6.20-rc2-mm1-a/sound/usb/usbmixer.c 2006-12-24 05:00:32.000000000 +0100 > +++ linux-2.6.20-rc2-mm1-b/sound/usb/usbmixer.c 2007-01-01 23:55:31.000000000 +0100 > @@ -1526,7 +1526,7 @@ static int parse_audio_selector_unit(str > namelist[i] = kmalloc(MAX_ITEM_NAME_LEN, GFP_KERNEL); > if (! namelist[i]) { > snd_printk(KERN_ERR "cannot malloc\n"); > - while (--i > 0) > + while (i--) > kfree(namelist[i]); > kfree(namelist); > kfree(cval); > > > -- > Regards, > > Mariusz Kozlowski >
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [author]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] usb: usbmixer error path fix
, Mariusz Kozlowski
, (Mon Jan 1, 5:13 pm)
Re: [PATCH] usb: usbmixer error path fix
, Takashi Iwai
, (Mon Jan 8, 3:48 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jesse Barnes
Re: [stable] [BUG][PATCH] cpqphp: fix kernel NULL pointer dereference
Greg KH
[003/136] p54usb: add Zcomax XG-705A usbid
Magnus Damm
[PATCH 03/07] ARM: Use shared GIC entry macros on Realview
Oliver Neukum
Re: [Bug #13682] The webcam stopped working when upgrading from 2.6.29 to 2.6.30
Martin Schwidefsky
Re: [PATCH] optimized ktime_get[_ts] for GENERIC_TIME=y
git
:
Junio C Hamano
Re: Some advanced index playing
Jeff King
Re: confusion over the new branch and merge config
Robin Rosenberg
Re: cvs2svn conversion directly to git ready for experimentation
Linus Torvalds
git binary size...
Ævar Arnfjörð Bjarmason
Re: Challenge with Git-Bash
git-commits-head
:
Linux Kernel Mailing List
md: move allocation of ->queue from mddev_find to md_probe
Linux Kernel Mailing List
md: raid0: Represent zone->zone_offset in sectors.
Linux Kernel Mailing List
[ARM] S3C24XX: Add gpio_to_irq() facility
Linux Kernel Mailing List
md: raid0_make_request(): Replace local variable block by sector.
Linux Kernel Mailing List
md: Allow md devices to be created by name.
linux-netdev
:
kaber
[PATCH 07/12] netfilter: xtables: change hotdrop pointer to direct modification
Gerrit Renker
[PATCH 3/5] dccp ccid-2: Remove redundant