]> git.baikalelectronics.ru Git - kernel.git/commit
IB/qib: Stricter bounds checking for copy and array access
authorKamenee Arumugam <kamenee.arumugam@intel.com>
Tue, 22 Aug 2017 01:26:32 +0000 (18:26 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 28 Aug 2017 23:12:17 +0000 (19:12 -0400)
commit27147273a68ecf5738ef87ccc6cd4bb8883fca84
treeaa1fd93479e8eb65efc093fac7a83f9af0e27b33
parent3b7169338c1caad4d17ed5d9ed412f813c919cd2
IB/qib: Stricter bounds checking for copy and array access

Added checking on index value of array 'guids' in qib_ruc.c.
Pass in corrrect size of array for memset operation in qib_mad.c.

Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Kamenee Arumugam <kamenee.arumugam@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qib/qib_mad.c
drivers/infiniband/hw/qib/qib_ruc.c