IB/ipath: strncpy() doesn't always NUL-terminate
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 6 Sep 2009 03:23:21 +0000 (20:23 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:23:21 +0000 (20:23 -0700)
commit286b63d09660de0fbd0d7748984d7ae491c7fdb6
tree8e7675a83dd395ec0bf4c9e403a75e8c90364607
parente07cccf4046978df10f2e13fe2b99b2f9b3a65db
IB/ipath: strncpy() doesn't always NUL-terminate

strlcpy() will always null terminate the string.  node_desc is not
guaranteed to be NUL-terminated so just use memcpy().

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_file_ops.c
drivers/infiniband/hw/ipath/ipath_mad.c