From: Chris Rorvick Date: Wed, 11 Feb 2015 12:03:31 +0000 (-0600) Subject: ALSA: line6: Improve line6_read/write_data() interfaces X-Git-Tag: fixes-v4.0-rc1~35^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25a0707cf6bc20677aa2e0b889d69f9dee8c1f14;p=pandora-kernel.git ALSA: line6: Improve line6_read/write_data() interfaces 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 Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed