OSDN Git Service

staging: sm750fb: Add const qualifier to struct declaration.
authorElise Lennion <elise.lennion@gmail.com>
Sat, 15 Oct 2016 00:32:03 +0000 (21:32 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Oct 2016 07:46:58 +0000 (09:46 +0200)
Const qualifier added to struct declaration to avoid data overwrite
during runtime and improve security.

Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c

index b094492..0663ec0 100644 (file)
@@ -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,}
 };