Re: [PATCH] USB: f_mass_storage: dynamic buffers for better alignment

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Felipe Balbi
Date: Monday, March 15, 2010 - 12:28 pm

On Mon, Mar 15, 2010 at 08:20:08PM +0100, Micha?? Nazarewicz wrote:

I have no opinion anymore :-p

I can only think about the devices I've been working on which would be a
pain to allocate so much memory and would suffer if you use vmalloc()
too, so both would be a no-no for me :-p


how about ?

for (i = FSG_NUM_BUFFER; i; i--, ++bh) {
	bh->buf = kmalloc(FSG_BUFLEN, GFP_KERNEL);
	if (!bh->buf)
		goto error_release;
}

-- 
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] USB: f_mass_storage: dynamic buffers for better al ..., Michal Nazarewicz, (Mon Mar 15, 3:09 am)
Re: [PATCH] USB: f_mass_storage: dynamic buffers for bette ..., =?utf-8?B?TWljaGHFgi ..., (Mon Mar 15, 12:20 pm)
Re: [PATCH] USB: f_mass_storage: dynamic buffers for bette ..., Felipe Balbi, (Mon Mar 15, 12:28 pm)
Re: [PATCH] USB: f_mass_storage: dynamic buffers for bette ..., =?utf-8?B?TWljaGHFgi ..., (Mon Mar 15, 12:43 pm)
[PATCH] USB: f_mass_storage: dynamic buffers for better al ..., Michal Nazarewicz, (Mon Mar 15, 1:28 pm)
[PATCHv3] USB: f_mass_storage: dynamic buffers for better ..., Michal Nazarewicz, (Mon Mar 15, 1:38 pm)