|
@@ -849,7 +849,7 @@ static int pcan_usb_fd_init(struct peak_usb_device *dev)
|
|
|
goto err_out;
|
|
goto err_out;
|
|
|
|
|
|
|
|
/* allocate command buffer once for all for the interface */
|
|
/* allocate command buffer once for all for the interface */
|
|
|
- pdev->cmd_buffer_addr = kmalloc(PCAN_UFD_CMD_BUFFER_SIZE,
|
|
|
|
|
|
|
+ pdev->cmd_buffer_addr = kzalloc(PCAN_UFD_CMD_BUFFER_SIZE,
|
|
|
GFP_KERNEL);
|
|
GFP_KERNEL);
|
|
|
if (!pdev->cmd_buffer_addr)
|
|
if (!pdev->cmd_buffer_addr)
|
|
|
goto err_out_1;
|
|
goto err_out_1;
|