diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-21 21:56:56 +0000 | 
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-21 21:56:56 +0000 | 
| commit | 2d13ccaa8797d7e599f3792aed4b1e44b47f94a5 (patch) | |
| tree | 7079c1610373fc6709c3a285a53099beaf21295a /sound/usb/quirks.c | |
| parent | 59136ef3c596606d3eef920dc3e0fdfa2ce52c6f (diff) | |
| parent | 11f1c5de7be06bbb51363002ebc4d00edc2677df (diff) | |
| download | olio-linux-3.10-2d13ccaa8797d7e599f3792aed4b1e44b47f94a5.tar.xz olio-linux-3.10-2d13ccaa8797d7e599f3792aed4b1e44b47f94a5.zip  | |
Merge branch 'irqchip-consolidation' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into devel-stable
Conflicts:
	arch/arm/mach-omap2/board-4430sdp.c
	arch/arm/mach-omap2/board-omap4panda.c
	arch/arm/mach-omap2/include/mach/omap4-common.h
	arch/arm/plat-omap/include/plat/irqs.h
The changes to omap4-common.h were moved to arch/arm/mach-omap2/common.h
and the other trivial conflicts resolved.  The now empty ifdef in irqs.h
was also eliminated.
Diffstat (limited to 'sound/usb/quirks.c')
| -rw-r--r-- | sound/usb/quirks.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 2e5bc734402..a3ddac0deff 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -137,12 +137,12 @@ static int create_fixed_stream_quirk(struct snd_usb_audio *chip,  		return -ENOMEM;  	}  	if (fp->nr_rates > 0) { -		rate_table = kmalloc(sizeof(int) * fp->nr_rates, GFP_KERNEL); +		rate_table = kmemdup(fp->rate_table, +				     sizeof(int) * fp->nr_rates, GFP_KERNEL);  		if (!rate_table) {  			kfree(fp);  			return -ENOMEM;  		} -		memcpy(rate_table, fp->rate_table, sizeof(int) * fp->nr_rates);  		fp->rate_table = rate_table;  	} @@ -224,10 +224,9 @@ static int create_uaxx_quirk(struct snd_usb_audio *chip,  	if (altsd->bNumEndpoints != 1)  		return -ENXIO; -	fp = kmalloc(sizeof(*fp), GFP_KERNEL); +	fp = kmemdup(&ua_format, sizeof(*fp), GFP_KERNEL);  	if (!fp)  		return -ENOMEM; -	memcpy(fp, &ua_format, sizeof(*fp));  	fp->iface = altsd->bInterfaceNumber;  	fp->endpoint = get_endpoint(alts, 0)->bEndpointAddress;  |