IB/qib: Stricter bounds checking for copy to buffer
authorKamenee Arumugam <kamenee.arumugam@intel.com>
Mon, 28 Aug 2017 18:23:33 +0000 (11:23 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 28 Aug 2017 23:12:27 +0000 (19:12 -0400)
commit6167a5b4b5f97d9fc09a99842bd3aa149654ffcf
treeed3b3f5c4b2f19ca2e9ee4e0de12b27ba8c03178
parent34ab4de77fe512ba3aeabdcdc97504bd19791511
IB/qib: Stricter bounds checking for copy to buffer

Replace 'strcpy' with 'strncpy' to restrict the number
of bytes copied to the buffer.

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_iba7322.c