From: Tim Sell Date: Mon, 13 Jul 2015 18:51:23 +0000 (-0400) Subject: staging: unisys: correctly NULL-terminate visorbus sysfs attribute array X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fd012d0def470d6c2e1a441421d00404240e7fec;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Don Zickus Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c index 6db47196c189..0f66f239dff0 100644 --- a/drivers/staging/unisys/visorbus/visorbus_main.c +++ b/drivers/staging/unisys/visorbus/visorbus_main.c @@ -471,6 +471,7 @@ static struct attribute *channel_attrs[] = { &dev_attr_typeguid.attr, &dev_attr_zoneguid.attr, &dev_attr_typename.attr, + NULL }; static struct attribute_group channel_attr_grp = {