Re: [linux-usb-devel] [PATCH -mm] drivers/usb/core/config.c: kzalloc(0, ..)

2007-05-08 Thread Jiri Slaby
Dan Kruchinin napsal(a): The following patch fixes such SLUB report(when someone tries to allocate 0 bytes): -- May 8 00:19:15 midgard kernel: [ 21.933467] BUG: at include/linux/slub_def.h:88 kmalloc_index() May 8 00:19:15 midgard kernel: [ 21.933470] [show_registers+410/736]

Re: [linux-usb-devel] [PATCH -mm] drivers/usb/core/config.c: kzalloc(0, ..)

2007-05-08 Thread Greg KH
On Tue, May 08, 2007 at 07:03:08AM +0400, Dan Kruchinin wrote: The following patch fixes such SLUB report(when someone tries to allocate 0 bytes): -- May 8 00:19:15 midgard kernel: [ 21.933467] BUG: at include/linux/slub_def.h:88 kmalloc_index() May 8 00:19:15 midgard kernel: [

Re: [linux-usb-devel] [PATCH -mm] drivers/usb/core/config.c: kzalloc(0, ..)

2007-05-08 Thread Alan Stern
On Tue, 8 May 2007, Greg KH wrote: The problem was in drivers/usb/core/config.c in function usb_parse_interface: --- num_ep = num_ep_orig = alt-desc.bNumEndpoints; ... len = sizeof(struct usb_host_endpoint) * num_ep; alt-endpoint = kzalloc(len, GFP_KERNEL); ---

Re: [linux-usb-devel] [PATCH -mm] drivers/usb/core/config.c: kzalloc(0, ..)

2007-05-08 Thread Randy Dunlap
On Tue, 8 May 2007 11:57:07 -0400 (EDT) Alan Stern wrote: On Tue, 8 May 2007, Greg KH wrote: The problem was in drivers/usb/core/config.c in function usb_parse_interface: --- num_ep = num_ep_orig = alt-desc.bNumEndpoints; ... len = sizeof(struct usb_host_endpoint) *

Re: [linux-usb-devel] [PATCH -mm] drivers/usb/core/config.c

2007-05-08 Thread Steve Calfee
At 07:14 AM 5/8/2007, you wrote: On Tue, May 08, 2007 at 07:03:08AM +0400, Dan Kruchinin wrote: The following patch fixes such SLUB report(when someone tries to allocate 0 bytes): -- May 8 00:19:15 midgard kernel: [ 21.933467] BUG: at include/linux/slub_def.h:88 kmalloc_index() May 8