Skip to contentSkip to conversation

Staging: vt6656: Make a read-only structure

PATCH New Mihaela Muraru 1 participant 1 message Oct 15, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/staging/vt6656/main_usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6656/main_usb.c +1 -1
index 0594828..fe84da3 100644
@@ -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)},
 	{}
 };
Signature · 1 line
2.7.4