staging: unisys: correctly NULL-terminate visorbus sysfs attribute array
authorTim Sell <Timothy.Sell@unisys.com>
Mon, 13 Jul 2015 18:51:23 +0000 (14:51 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 01:36:48 +0000 (18:36 -0700)
commitfd012d0def470d6c2e1a441421d00404240e7fec
tree9cf8c431ce89f718cbbfc9b2f96bbc45c7c600bb
parent2164be191e3d627dd7744b7224daf9ad9495c9af
staging: unisys: correctly NULL-terminate visorbus sysfs attribute array

I'm not sure what adverse runtime effects the previously-omitted
NULL-termination would cause, but the code was definitely wrong.

Fixes: 795731627c ('staging: unisys: Clean up device sysfs attributes')
Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Acked-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c