irda: precedence bug in irlmp_seq_hb_idx()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 19 Oct 2015 10:16:49 +0000 (13:16 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Oct 2015 14:48:26 +0000 (07:48 -0700)
commit50010c20597d14667eff0fdb628309986f195230
treeddf7817ca710a0e7f6222d3c2764d4aa66ba2b94
parentca88ea1247dfee094e2467a3578eaec9bdf0833a
irda: precedence bug in irlmp_seq_hb_idx()

This is decrementing the pointer, instead of the value stored in the
pointer.  KASan detects it as an out of bounds reference.

Reported-by: "Berry Cheng 程君(成淼)" <chengmiao.cj@alibaba-inc.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/irlmp.c