Re: [PATCH] USB: legousbtower: Fix buffers on stack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 21, 2017 at 10:48:48PM +0300, Maksim Salau wrote:
> Allocate buffers on HEAP instead of STACK for local structures
> that are to be received using usb_control_msg().
> 
> Signed-off-by: Maksim Salau <maksim.salau@xxxxxxxxx>
> ---
> 
> I took the liberty to fix the module if Greg don't mind.
> It is to be applied on vanilla v4.10.12 (without Greg's patch).

Yeah!  Thank you for this, I got distracted with stable kernel work for
the past few days.

> Changes compared to Greg's version:
> * fixed tower_reset() which is used in the open callback;
> * better deallocation handling in case of failures.

Alfredo, can you test this patch out?

thanks again,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux