Re: [PATCH] usb: image: mdc800: change kmalloc() to kzalloc()

From: Oliver Neukum

Date: Tue Sep 01 2026 - 08:36:27 EST




On 19.08.26 12:04, Griffin Kroah-Hartman wrote:
Change the kmalloc() calls in usb_mdc800_init() for irq_urb_buffer and
download_urb_buffer to kzalloc(), avoiding potential stack leaks if a
shorter message is received in mdc800_usb_irq() and
mdc800_usb_download_notify()

Hi,

thanks for the patch, but is this the right approach?
If we get too short a reply we shouldn't process it
at all.

Regards
Oliver