We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc53ee commit 8600d42Copy full SHA for 8600d42
drivers/net/can/usb/peak_usb/pcan_usb_fd.c
@@ -850,7 +850,7 @@ static int pcan_usb_fd_init(struct peak_usb_device *dev)
850
goto err_out;
851
852
/* allocate command buffer once for all for the interface */
853
- pdev->cmd_buffer_addr = kmalloc(PCAN_UFD_CMD_BUFFER_SIZE,
+ pdev->cmd_buffer_addr = kzalloc(PCAN_UFD_CMD_BUFFER_SIZE,
854
GFP_KERNEL);
855
if (!pdev->cmd_buffer_addr)
856
goto err_out_1;
0 commit comments