can: kvaser_usb: kvaser_usb_leaf: Fix some info-leaks to USB devices
authorXiaolong Huang <butterflyhuangxx@gmail.com>
Sat, 7 Dec 2019 14:40:24 +0000 (22:40 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 8 Dec 2019 11:22:01 +0000 (12:22 +0100)
commitda2311a6385c3b499da2ed5d9be59ce331fa93e9
treec520dbb9bc01bed7bb61a930df1683392b6765e2
parent2de497356955ce58cd066fb03d2da5235f3c7c23
can: kvaser_usb: kvaser_usb_leaf: Fix some info-leaks to USB devices

Uninitialized Kernel memory can leak to USB devices.

Fix this by using kzalloc() instead of kmalloc().

Signed-off-by: Xiaolong Huang <butterflyhuangxx@gmail.com>
Fixes: 7259124eac7d ("can: kvaser_usb: Split driver into kvaser_usb_core.c and kvaser_usb_leaf.c")
Cc: linux-stable <stable@vger.kernel.org> # >= v4.19
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c