Re: [PATCH v6 1/7] ALSA: usb-audio: Add initial driver for TASCAM US-144MKII

From: Markus Elfring
Date: Sat Aug 30 2025 - 05:55:39 EST


> This patch introduces …

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.17-rc3#n94



> +++ b/sound/usb/usx2y/us144mkii.c
> @@ -0,0 +1,248 @@

> +static int tascam_probe(struct usb_interface *intf,
> + const struct usb_device_id *usb_id)
> +{

> + char *handshake_buf __free(kfree) = NULL;
> +
> + if (dev->speed != USB_SPEED_HIGH)

> + handshake_buf = kmalloc(1, GFP_KERNEL);


Can another software design option become more attractive?
May the scope be reduced for such a variable?

Regards,
Markus