projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae71909
)
Staging: vt6656: Make a read-only structure
author
Mihaela Muraru
<
[email protected]
>
Sat, 15 Oct 2016 21:55:22 +0000
(
00:55
+0300)
committer
Greg Kroah-Hartman
<
[email protected]
>
Mon, 17 Oct 2016 07:54:15 +0000
(09:54 +0200)
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 <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/vt6656/main_usb.c
patch
|
blob
|
history
diff --git
a/drivers/staging/vt6656/main_usb.c
b/drivers/staging/vt6656/main_usb.c
index 0594828bdabf92feca8736a7b777c5d6b7b07763..fe84da363fbd8c3f3193702201a99dc8e62d57ad 100644
(file)
--- 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)},
{}
};