RDMA/hfi1: fix array termination by appending NULL to attr array
authorSteven L. Roberts <robers97@gmail.com>
Wed, 10 May 2017 15:54:12 +0000 (10:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:48:18 +0000 (19:48 +0200)
commit4581de2bfa6f8aeb03cd7bd28a2a4d6246b67c51
treedf86da2b80e94c8df9119afffd1585d89ad1c5d3
parent9d4aa135e44ecee5c295891aea97f86eb234ff77
RDMA/hfi1: fix array termination by appending NULL to attr array

[ Upstream commit c4dd4b69f55abcc8dd079f8de55d9d8c2ddbefce ]

This fixes a kernel panic when loading the hfi driver as a dynamic module.

Signed-off-by: Steven L Roberts <robers97@gmail.com>
Reviewed-by: Leon Romanovsky <leon@kernel.org>
Acked-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/hfi1/sysfs.c