diff options
Diffstat (limited to 'drivers/usb/image/mdc800.c')
-rw-r--r-- | drivers/usb/image/mdc800.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/image/mdc800.c b/drivers/usb/image/mdc800.c index 049871145d63..4e3e4d048c14 100644 --- a/drivers/usb/image/mdc800.c +++ b/drivers/usb/image/mdc800.c | |||
@@ -978,13 +978,11 @@ static int __init usb_mdc800_init (void) | |||
978 | { | 978 | { |
979 | int retval = -ENODEV; | 979 | int retval = -ENODEV; |
980 | /* Allocate Memory */ | 980 | /* Allocate Memory */ |
981 | mdc800=kmalloc (sizeof (struct mdc800_data), GFP_KERNEL); | 981 | mdc800=kzalloc (sizeof (struct mdc800_data), GFP_KERNEL); |
982 | if (!mdc800) | 982 | if (!mdc800) |
983 | goto cleanup_on_fail; | 983 | goto cleanup_on_fail; |
984 | 984 | ||
985 | memset(mdc800, 0, sizeof(struct mdc800_data)); | ||
986 | mdc800->dev = NULL; | 985 | mdc800->dev = NULL; |
987 | mdc800->open=0; | ||
988 | mdc800->state=NOT_CONNECTED; | 986 | mdc800->state=NOT_CONNECTED; |
989 | init_MUTEX (&mdc800->io_lock); | 987 | init_MUTEX (&mdc800->io_lock); |
990 | 988 | ||