]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
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 b094492cc5f06b22cb3c0dd2d18faf765e545d02..0663ec00206b7c67fc2a7f511db09693de6865c5 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,}
 };