USB: don't try to kzalloc 0 bytes
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 15 May 2007 21:40:37 +0000 (17:40 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 May 2007 06:45:50 +0000 (23:45 -0700)
commit57a21c1b929450b1e020c0a03cca6fa7448f4222
tree78f5f237293338f00d288a40dea3a7ed78591845
parentb89ee19ae6c0b5a0d9facca780b53959fbadd123
USB: don't try to kzalloc 0 bytes

This patch (as907) prevents us from trying to allocate 0 bytes
when an interface has no endpoint descriptors.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/config.c