qe/ic: fix a buffer overflow error and add check elsewhere
authorZhao Qiang <qiang.zhao@nxp.com>
Thu, 21 Jan 2016 01:06:04 +0000 (09:06 +0800)
committerScott Wood <oss@buserror.net>
Wed, 9 Mar 2016 16:44:12 +0000 (10:44 -0600)
commitc9ee69c5e2dc41e4153b3742db1f3dde856d539c
tree52599c2bc43b380d968e3e9b86286387c61e77d2
parentea6370d23c919127b2cd204af213223a89457477
qe/ic: fix a buffer overflow error and add check elsewhere

127 is the theoretical up boundary of QEIC number,
in fact there only be 44 qe_ic_info now.
add check to overflow for qe_ic_info

Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
Acked-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Scott Wood <oss@buserror.net>
drivers/soc/fsl/qe/qe_ic.c