]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Fix array length allocation
authorDoug Ledford <dledford@redhat.com>
Mon, 6 Jun 2016 23:52:55 +0000 (19:52 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 7 Jun 2016 13:42:21 +0000 (09:42 -0400)
commit2f19a46b78f2e1e84f7d42cd2dc73e3ecba7ce26
treeac82511a648fc9eab5c35010b39578a72aa779b7
parent66844de22e6c36d24cb162703387528ec12e10cf
IB/core: Fix array length allocation

The new sysfs hw_counters code had an off by one in its array allocation
length.  Fix that and the comment along with it.

Reported-by: Mark Bloch <markb@mellanox.com>
Fixes: 6ab34bd4aa97 (IB/core: Make device counter infrastructure
dynamic)
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/sysfs.c