From: Dan Carpenter Date: Mon, 6 May 2013 08:28:41 +0000 (+0000) Subject: tipc: add a bounds check in link_recv_changeover_msg() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~21^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb4b102f0ab29fcbaf945c6b1f85ef006cdb8edc;p=pandora-kernel.git tipc: add a bounds check in link_recv_changeover_msg() The bearer_id here comes from skb->data and it can be a number from 0 to 7. The problem is that the ->links[] array has only 2 elements so I have added a range check. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed