irda: small read beyond end of array in debug code
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 26 Feb 2013 19:15:02 +0000 (19:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Feb 2013 18:10:35 +0000 (13:10 -0500)
commit90c7881ecee1f08e0a49172cf61371cf2509ee4a
treec2caac0d94e2d4d75090947c2e45be0e359adb65
parente70ab977991964a5a7ad1182799451d067e62669
irda: small read beyond end of array in debug code

charset comes from skb->data.  It's a number in the 0-255 range.
If we have debugging turned on then this could cause a read beyond
the end of the array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/iriap.c