summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6656
diff options
context:
space:
mode:
authorMihaela Muraru <mihaela.muraru21@gmail.com>2016-10-16 00:55:22 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-17 09:54:15 +0200
commitee705c3b938531992affc01d16bc32ccd5ee968c (patch)
tree1409464a3d79707d803c75cfbfbf074c6d7022cc /drivers/staging/vt6656
parentae719092fe1b7e147ab428903475b4b46ff79389 (diff)
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.c2
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)},
{}
};