staging: sm750fb: Add const qualifier to struct declaration.
Subsystems (2)
PATCH v2 1/1 staging: sm750fb: Add const qualifier to struct declaration.
Const qualifier added to struct declaration to avoid data overwrite during runtime and improve security.
---
v2: Rewrite log message.
drivers/staging/sm750fb/sm750.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/sm750fb/sm750.c +1 -1
@@ -1188,7 +1188,7 @@ static int __init lynxfb_setup(char *options)return 0 ; } -static struct pci_device_id smi_pci_table[] = { +static const struct pci_device_id smi_pci_table[] = { {PCI_DEVICE (0x126f ,0x0750 ), }, {0 ,} };
Signature · 1 line
2.7.4
Quoted 4 lines · Elise Lennion
Const qualifier added to struct declaration to avoid data overwrite during runtime and improve security.
Signed-off-by Elise Lennion <[email protected]>
Quoted 30 lines
---
v2: Rewrite log message.
drivers/staging/sm750fb/sm750.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/sm750fb/sm750.c +1
-2@@ -1188,7 +1188,7 @@ static int __init lynxfb_setup(char *options)return 0 ; } -static struct pci_device_id smi_pci_table[] = { +static const struct pci_device_id smi_pci_table[] = { {PCI_DEVICE (0x126f ,0x0750 ), }, {0 ,} }; --2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20161015003202.GA15932%40lennorien.com.
For more options, visit https://groups.google.com/d/optout.