Re: [PATCH v2] ALSA: line6: Improve line6_read/write_data() interfaces

2015-02-11 Thread Takashi Iwai
At Wed, 11 Feb 2015 06:03:31 -0600, Chris Rorvick wrote: > > The address cannot be negative so make it unsigned. Also, an unsigned > int is always sufficient for the length, so no need to overdo it with a > size_t. Finally, add in range checks to see if the values passed in > actually fit where

[PATCH v2] ALSA: line6: Improve line6_read/write_data() interfaces

2015-02-11 Thread Chris Rorvick
The address cannot be negative so make it unsigned. Also, an unsigned int is always sufficient for the length, so no need to overdo it with a size_t. Finally, add in range checks to see if the values passed in actually fit where they are used. Signed-off-by: Chris Rorvick --- This was dropped f