- usb-usbmixer-error-path-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     usb: usbmixer error path fix
has been removed from the -mm tree.  Its filename was
     usb-usbmixer-error-path-fix.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: usb: usbmixer error path fix
From: Mariusz Kozlowski <m.kozlowski@xxxxxxxxxx>


Without the patch below namelist[0] will not be freed in case of kmalloc
error.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@xxxxxxxxxx>
Cc: Greg KH <greg@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 sound/usb/usbmixer.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN sound/usb/usbmixer.c~usb-usbmixer-error-path-fix sound/usb/usbmixer.c
--- a/sound/usb/usbmixer.c~usb-usbmixer-error-path-fix
+++ a/sound/usb/usbmixer.c
@@ -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);
_

Patches currently in -mm which might be from m.kozlowski@xxxxxxxxxx are

origin.patch
git-alsa.patch
ppc-cs4218_tdm-remove-extra-brace.patch
git-dvb.patch
mips-dbg_io-stray-brackets-fix.patch
git-mtd.patch
net-ifb-error-path-loop-fix.patch
git-scsi-rc-fixes.patch
scsi-sic7xxx-stray-bracket-fix.patch
scsi-53c7xx-brackets-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux