diff options
Diffstat (limited to 'drivers/hid/hid-sensor-hub.c')
| -rw-r--r-- | drivers/hid/hid-sensor-hub.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c index 25363fc571bc..50af72baa5ca 100644 --- a/drivers/hid/hid-sensor-hub.c +++ b/drivers/hid/hid-sensor-hub.c @@ -624,7 +624,8 @@ static int sensor_hub_probe(struct hid_device *hdev,  		ret = -EINVAL;  		goto err_stop_hw;  	} -	sd->hid_sensor_hub_client_devs = devm_kzalloc(&hdev->dev, dev_cnt * +	sd->hid_sensor_hub_client_devs = devm_kcalloc(&hdev->dev, +						      dev_cnt,  						      sizeof(struct mfd_cell),  						      GFP_KERNEL);  	if (sd->hid_sensor_hub_client_devs == NULL) {  | 
