Revert "USB: usbtmc: prevent kernel-usb-infoleak"

This reverts commit d3fd52ffc5.
This commit is contained in:
Ksawlii 2024-11-24 00:23:31 +01:00
parent 24c95b7dbb
commit bb47ce07e5

View file

@ -724,7 +724,7 @@ static struct urb *usbtmc_create_urb(void)
if (!urb)
return NULL;
dmabuf = kzalloc(bufsize, GFP_KERNEL);
dmabuf = kmalloc(bufsize, GFP_KERNEL);
if (!dmabuf) {
usb_free_urb(urb);
return NULL;