diff options
Diffstat (limited to 'drivers/media/dvb/cinergyT2/cinergyT2.c')
-rw-r--r-- | drivers/media/dvb/cinergyT2/cinergyT2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb/cinergyT2/cinergyT2.c b/drivers/media/dvb/cinergyT2/cinergyT2.c index 5a1449f485cf..28929b618e20 100644 --- a/drivers/media/dvb/cinergyT2/cinergyT2.c +++ b/drivers/media/dvb/cinergyT2/cinergyT2.c | |||
@@ -905,12 +905,11 @@ static int cinergyt2_probe (struct usb_interface *intf, | |||
905 | struct cinergyt2 *cinergyt2; | 905 | struct cinergyt2 *cinergyt2; |
906 | int err; | 906 | int err; |
907 | 907 | ||
908 | if (!(cinergyt2 = kmalloc (sizeof(struct cinergyt2), GFP_KERNEL))) { | 908 | if (!(cinergyt2 = kzalloc (sizeof(struct cinergyt2), GFP_KERNEL))) { |
909 | dprintk(1, "out of memory?!?\n"); | 909 | dprintk(1, "out of memory?!?\n"); |
910 | return -ENOMEM; | 910 | return -ENOMEM; |
911 | } | 911 | } |
912 | 912 | ||
913 | memset (cinergyt2, 0, sizeof (struct cinergyt2)); | ||
914 | usb_set_intfdata (intf, (void *) cinergyt2); | 913 | usb_set_intfdata (intf, (void *) cinergyt2); |
915 | 914 | ||
916 | mutex_init(&cinergyt2->sem); | 915 | mutex_init(&cinergyt2->sem); |