staging: sm750fb: Add const qualifier to struct declaration.

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>
This commit is contained in:
Elise Lennion 2016-10-14 21:32:03 -03:00 committed by Greg Kroah-Hartman
parent 2328ed663b
commit 6aab2d7eac
1 changed files with 1 additions and 1 deletions

View 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,}
};