mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 11:33:58 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2164be191e
commit
fd012d0def
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user