diff options
author | Mihaela Muraru | 2016-10-15 23:55:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-10-17 09:54:15 +0200 |
commit | ee705c3b938531992affc01d16bc32ccd5ee968c (patch) | |
tree | 1409464a3d79707d803c75cfbfbf074c6d7022cc /drivers/staging/vt6656 | |
parent | staging: unisys: visorbus: add missing include (diff) | |
download | kernel-qcow2-linux-ee705c3b938531992affc01d16bc32ccd5ee968c.tar.gz kernel-qcow2-linux-ee705c3b938531992affc01d16bc32ccd5ee968c.tar.xz kernel-qcow2-linux-ee705c3b938531992affc01d16bc32ccd5ee968c.zip |
Staging: vt6656: Make a read-only structure
This patch add const qualifier at the declaration of the structure.
The structure become a read-only data, this increase the security.
Signed-off-by: Mihaela Muraru <mihaela.muraru21@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r-- | drivers/staging/vt6656/main_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 0594828bdabf..fe84da363fbd 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -85,7 +85,7 @@ MODULE_PARM_DESC(tx_buffers, "Number of receive usb tx buffers"); * Static vars definitions */ -static struct usb_device_id vt6656_table[] = { +static const struct usb_device_id vt6656_table[] = { {USB_DEVICE(VNT_USB_VENDOR_ID, VNT_USB_PRODUCT_ID)}, {} }; |