From: Mihaela Muraru Date: Sat, 15 Oct 2016 21:55:22 +0000 (+0300) Subject: Staging: vt6656: Make a read-only structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee705c3b938531992affc01d16bc32ccd5ee968c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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)}, {} };