Skip to contentSkip to conversation

Staging: unisys: visorbus: Make a read-only structure

PATCH New Mihaela Muraru 1 participant 1 message Oct 15, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: unisys: visorbus: Make a read-only structure

This patch add const qualifier at the declaration of the structure. The structure become a read-only data, this increase the security.

---
 drivers/staging/unisys/visorbus/visorchipset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/unisys/visorbus/visorchipset.c +1 -1
index 5987149..8e67c17 100644
@@ -1317,7 +1317,7 @@ static struct attribute *visorchipset_install_attrs[] = {
 	NULL
 };
 
-static struct attribute_group visorchipset_install_group = {
+static const struct attribute_group visorchipset_install_group = {
 	.name = "install",
 	.attrs = visorchipset_install_attrs
 };
Signature · 1 line
2.7.4