diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-30 21:37:12 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-30 21:37:12 -0500 |
commit | 23fd07750a789a66fe88cf173d52a18f1a387da4 (patch) | |
tree | 06fdd6df35fdb835abdaa9b754d62f6b84b97250 /drivers/usb/image/microtek.c | |
parent | bd787d438a59266af3c9f6351644c85ef1dd21fe (diff) | |
parent | ed28f96ac1960f30f818374d65be71d2fdf811b0 (diff) |
Merge ../linux-2.6 by hand
Diffstat (limited to 'drivers/usb/image/microtek.c')
-rw-r--r-- | drivers/usb/image/microtek.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c index c84e1486054f..c89d0769b3da 100644 --- a/drivers/usb/image/microtek.c +++ b/drivers/usb/image/microtek.c | |||
@@ -773,11 +773,10 @@ static int mts_usb_probe(struct usb_interface *intf, | |||
773 | } | 773 | } |
774 | 774 | ||
775 | 775 | ||
776 | new_desc = kmalloc(sizeof(struct mts_desc), GFP_KERNEL); | 776 | new_desc = kzalloc(sizeof(struct mts_desc), GFP_KERNEL); |
777 | if (!new_desc) | 777 | if (!new_desc) |
778 | goto out; | 778 | goto out; |
779 | 779 | ||
780 | memset(new_desc, 0, sizeof(*new_desc)); | ||
781 | new_desc->urb = usb_alloc_urb(0, GFP_KERNEL); | 780 | new_desc->urb = usb_alloc_urb(0, GFP_KERNEL); |
782 | if (!new_desc->urb) | 781 | if (!new_desc->urb) |
783 | goto out_kfree; | 782 | goto out_kfree; |