Re: [PATCH] USB: do not convert negative transfer_buffer_lengths to positive

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

 



On Tue, Mar 03, 2009 at 10:48:43PM +0100, Roel Kluin wrote:
> vi include/linux/usb.h +1373
> struct urb {
> 	...
> 	int transfer_buffer_length;
> 	...
> }
> So I think something like this is needed?

Have you ever seen a transfer_buffer_length set to anywhere close to the
MAX_INT value to trigger this?  Or a negative value?

How about just changing transfer_buffer_length to a u32, that should
solve it, right?

thanks,

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