diff options
author | Elise Lennion <elise.lennion@gmail.com> | 2016-10-15 03:32:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-17 10:46:58 +0300 |
commit | 6aab2d7eacb078d2ad9b6ca5245521a7886e5d29 (patch) | |
tree | 514e84410839d374a40871aa8e83a0bd2f88a58b | |
parent | 2328ed663b3a34123df2c794f95505d332dc5284 (diff) | |
download | linux-6aab2d7eacb078d2ad9b6ca5245521a7886e5d29.tar.xz |
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>
-rw-r--r-- | drivers/staging/sm750fb/sm750.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index b094492cc5f0..0663ec00206b 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -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,} }; |