diff options
Diffstat (limited to 'drivers/usb/storage/jumpshot.c')
-rw-r--r-- | drivers/usb/storage/jumpshot.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/storage/jumpshot.c b/drivers/usb/storage/jumpshot.c index aff9d51c327..5031aa98f6a 100644 --- a/drivers/usb/storage/jumpshot.c +++ b/drivers/usb/storage/jumpshot.c | |||
@@ -441,12 +441,11 @@ int jumpshot_transport(struct scsi_cmnd * srb, struct us_data *us) | |||
441 | }; | 441 | }; |
442 | 442 | ||
443 | if (!us->extra) { | 443 | if (!us->extra) { |
444 | us->extra = kmalloc(sizeof(struct jumpshot_info), GFP_NOIO); | 444 | us->extra = kzalloc(sizeof(struct jumpshot_info), GFP_NOIO); |
445 | if (!us->extra) { | 445 | if (!us->extra) { |
446 | US_DEBUGP("jumpshot_transport: Gah! Can't allocate storage for jumpshot info struct!\n"); | 446 | US_DEBUGP("jumpshot_transport: Gah! Can't allocate storage for jumpshot info struct!\n"); |
447 | return USB_STOR_TRANSPORT_ERROR; | 447 | return USB_STOR_TRANSPORT_ERROR; |
448 | } | 448 | } |
449 | memset(us->extra, 0, sizeof(struct jumpshot_info)); | ||
450 | us->extra_destructor = jumpshot_info_destructor; | 449 | us->extra_destructor = jumpshot_info_destructor; |
451 | } | 450 | } |
452 | 451 | ||