]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/can/usb/peak_usb/pcan_usb_fd.c
can: peak_usb: pcan_usb_fd: Fix info-leaks to USB devices
[linux.git] / drivers / net / can / usb / peak_usb / pcan_usb_fd.c
index 34761c3a62867d1001f48224bd9e51b1685bbb74..47cc1ff5b88e828fe65899b8ef38b447ae1da098 100644 (file)
@@ -841,7 +841,7 @@ static int pcan_usb_fd_init(struct peak_usb_device *dev)
                        goto err_out;
 
                /* 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);
                if (!pdev->cmd_buffer_addr)
                        goto err_out_1;