irda: fix read buffer overflow
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 6 Aug 2009 13:06:03 +0000 (13:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2009 04:45:30 +0000 (21:45 -0700)
commit5d5ceb8bdde403529ad9849f300dc80b1884550f
tree81420b05ee4a9055300e66e65c08df81b3a3edb1
parentcb2f33e9596632979c140c243ac1e8e994f62180
irda: fix read buffer overflow

io[i] is read before the bounds check on i, order should be reversed.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/w83977af_ir.c