diff options
author | Oliver Neukum <oliver@neukum.org> | 2006-01-08 12:33:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 23:49:52 +0100 |
commit | 887c2560b6ceb5fe7ac24704e85af507c6d960e5 (patch) | |
tree | dd363a707a717bb87c1b89a64ab46b3394524a3f /drivers/usb/storage/jumpshot.c | |
parent | [PATCH] USB: mdc800.c to kzalloc (diff) | |
download | linux-887c2560b6ceb5fe7ac24704e85af507c6d960e5.tar.xz linux-887c2560b6ceb5fe7ac24704e85af507c6d960e5.zip |
[PATCH] USB: kzalloc for storage
another one for kzalloc. This covers the storage subdirectory.
Signed-off-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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 aff9d51c327c..5031aa98f6a9 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) }; if (!us->extra) { - us->extra = kmalloc(sizeof(struct jumpshot_info), GFP_NOIO); + us->extra = kzalloc(sizeof(struct jumpshot_info), GFP_NOIO); if (!us->extra) { US_DEBUGP("jumpshot_transport: Gah! Can't allocate storage for jumpshot info struct!\n"); return USB_STOR_TRANSPORT_ERROR; } - memset(us->extra, 0, sizeof(struct jumpshot_info)); us->extra_destructor = jumpshot_info_destructor; } |