|
@@ -780,7 +780,7 @@ f_midi_bind(struct usb_configuration *c, struct usb_function *f)
|
|
midi->out_ep->driver_data = cdev; /* claim */
|
|
midi->out_ep->driver_data = cdev; /* claim */
|
|
|
|
|
|
/* allocate temporary function list */
|
|
/* allocate temporary function list */
|
|
- midi_function = kcalloc((MAX_PORTS * 4) + 9, sizeof(midi_function),
|
|
|
|
|
|
+ midi_function = kcalloc((MAX_PORTS * 4) + 9, sizeof(*midi_function),
|
|
GFP_KERNEL);
|
|
GFP_KERNEL);
|
|
if (!midi_function) {
|
|
if (!midi_function) {
|
|
status = -ENOMEM;
|
|
status = -ENOMEM;
|