[v1] usb:gadget:legacy:nokia :- Check for NULL in nokia_bind_config

2016-12-08 Thread Arvind Yadav
. Signed-off-by: Arvind Yadav --- drivers/usb/gadget/legacy/nokia.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/gadget/legacy/nokia.c b/drivers/usb/gadget/legacy/nokia.c index b1e535f..d3ba286 100644 --- a/drivers/usb/gadget/legacy/nokia.c +++ b

[PATCH] usb: mtu3: Handle return value of clk_prepare_enable

2017-06-09 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/usb/mtu3/mtu3_plat.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb/mtu3/mtu3_plat.c index

[PATCH] usb: dwc3: exynos: Handle return value of clk_prepare_enable

2017-06-12 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/usb/dwc3/dwc3-exynos.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 98f74ff

[PATCH] usb: host: ehci-exynos: Handle return value of clk_prepare_enable

2017-06-12 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/usb/host/ehci-exynos.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index 7a603f6..26b6411

[PATCH] usb: host: ohci-pxa27x: Handle return value of clk_prepare_enable

2017-06-13 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/usb/host/ohci-pxa27x.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c index 79efde8f

[PATCH] usb: gadget: mv_udc: Handle return value of clk_prepare_enable.

2017-06-14 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/usb/gadget/udc/mv_udc_core.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/mv_udc_core.c b/drivers/usb/gadget/udc/mv_udc_core.c

[PATCH v2] usb: host: ohci-pxa27x: Handle return value of clk_prepare_enable

2017-06-14 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav Changes in v2: Remove useless initialization of retval. --- drivers/usb/host/ohci-pxa27x.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/usb

[PATCH] usb: core: sysfs: constify attribute_group

2017-06-22 Thread Arvind Yadav
ned-off-by: Arvind Yadav --- drivers/usb/core/sysfs.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c index dfc68ed..2af3121 100644 --- a/drivers/usb/core/sysfs.c +++ b/drivers/usb/core/sysfs.c @@ -617,7 +617,7

[PATCH] usb: host: ohci-pxa27x: Handle return value of clk_prepare_enable

2017-06-26 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- Changes in v3: Change log correction. Add change log below '---'. Changes in v2: Remove useless initialization of retval. drivers/usb/host/ohci-pxa

[PATCH v4] usb: host: ohci-pxa27x: Handle return value of clk_prepare_enable

2017-06-26 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/usb/host/ohci-pxa27x.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c index 79efde8f

[PATCH v5] usb: host: ohci-pxa27x: Handle return value of clk_prepare_enable

2017-06-27 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- Changes in v4: Change log was missing. Changes in v3: Change log correction. Added change log below '---'. Changes in v2: Remove useless init

[PATCH] usb: dwc3: pci: constify dev_pm_ops structures.

2017-06-28 Thread Arvind Yadav
-pci.o File size After adding 'const': textdata bss dec hex filename 2899 264 03163 c5b drivers/usb/dwc3/dwc3-pci.o Signed-off-by: Arvind Yadav --- drivers/usb/dwc3/dwc3-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH] net: usb: qmi_wwan: constify attribute_group structures.

2017-07-10 Thread Arvind Yadav
drivers/net/usb/qmi_wwan.o File size After adding 'const': textdata bss dec hex filename 16895 400 0 17295438f drivers/net/usb/qmi_wwan.o Signed-off-by: Arvind Yadav --- drivers/net/usb/qmi_wwan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] net: cdc_ncm: constify attribute_group structures.

2017-07-10 Thread Arvind Yadav
drivers/net/usb/cdc_ncm.o File size After adding 'const': textdata bss dec hex filename 13339 864 1 14204377c drivers/net/usb/cdc_ncm.o Signed-off-by: Arvind Yadav --- drivers/net/usb/cdc_ncm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH v2 01/10] net: cdc_ncm: constify attribute_group structures.

2017-07-11 Thread Arvind Yadav
drivers/net/usb/cdc_ncm.o File size After adding 'const': textdata bss dec hex filename 13339 864 1 14204377c drivers/net/usb/cdc_ncm.o Signed-off-by: Arvind Yadav --- Changes in v2: Added cover later. drivers/net/usb/cdc_ncm.c | 2

[PATCH v2 00/10] Constify attribute_group structures

2017-07-11 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. So mark the non-const structs as const. Arvind Yadav (10): [PATCH v2 01/10] net: cdc_ncm: constify attribute_group structures. [PATCH v2 02/10] net: can: at91_can: constify attribute_group structures. [PATCH v2 03/10] net: can: janz

[PATCH] usb: gadget: udc: net2272: constify pci_device_id.

2017-07-15 Thread Arvind Yadav
/gadget/udc/net2272.o File size After adding 'const': textdata bss dec hex filename 195492164 5 2171854d6 drivers/usb/gadget/udc/net2272.o Signed-off-by: Arvind Yadav --- drivers/usb/gadget/udc/net2272.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v3 00/10] constify net attribute_group structures.

2017-07-18 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Arvind Yadav (10): [PATCH v3 01/10] net: cdc_ncm: constify attribute_group structures. [PATCH v3 02/10] net

[PATCH v3 01/10] net: cdc_ncm: constify attribute_group structures.

2017-07-18 Thread Arvind Yadav
drivers/net/usb/cdc_ncm.o File size After adding 'const': textdata bss dec hex filename 13339 864 1 14204377c drivers/net/usb/cdc_ncm.o Signed-off-by: Arvind Yadav --- Changes in v2: Added cover later. Changes in v3: net-next

[PATCH 10/11] usb: wusbcore: dev-sysfs: constify attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/wusbcore/dev-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 11/11] usb: wusbcore: wusbhc: constify attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/wusbcore/wusbhc.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 07/11] usb: phy-mv-usb: constify attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/phy/phy-mv-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 08/11] usb: phy-tahvo: constify attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/phy/phy-tahvo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 09/11] usb: wusbcore: cbaf: constify attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/wusbcore/cbaf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 06/11] usb: usbsevseg: constify attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/misc/usbsevseg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 03/11] usb: chipidea: otg_fsm: constify attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/chipidea/otg_fsm.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 05/11] usb: hcd: constify attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/core/hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 04/11] usb: usbtmc: constify attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/class/usbtmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 01/11] usb: atm: ueagle-atm: constify attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/atm/ueagle-atm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 02/11] usb: chipidea: constify attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/chipidea/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 00/11] constify usb attribute_group structures.

2017-08-04 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Arvind Yadav (11): [PATCH 01/11] usb: atm: ueagle-atm: constify attribute_group structures. [PATCH 02/11] usb

[PATCH] uwb: lc-rc: constify attribute_group structures.

2017-08-06 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/uwb/lc-rc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 15/35] net: usb: rtl8150: constify usb_device_id

2017-08-08 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/usb/rtl8150.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 14/35] net: usb: r8152: constify usb_device_id

2017-08-08 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/usb/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 13/35] net: usb: kaweth: constify usb_device_id

2017-08-08 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/usb/kaweth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 11/35] net: usb: cdc-phonet: constify usb_device_id

2017-08-08 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/usb/cdc-phonet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 12/35] net: usb: ipheth: constify usb_device_id

2017-08-08 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/usb/ipheth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 10/35] net: usb: catc: constify usb_device_id and fix space before '[' error

2017-08-08 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Ar

[PATCH] usb: gadget: f_uac2: constify snd_pcm_ops structures

2017-08-09 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/gadget/function/u_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 1/3] usb: speedtch: constify usb_device_id

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/atm/speedtch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 2/3] usb: hwa-hc: constify usb_device_id

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/host/hwa-hc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 0/3] constify usb usb_device_id

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Arvind Yadav (3): [PATCH 1/3] usb: speedtch: constify usb_device_id [PATCH 2/3] usb: hwa-hc: constify usb_device_id

[PATCH] mmc: vub300: constify usb_device_id

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/mmc/host/vub300.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 2/2] HID: usbmouse: constify usb_device_id and fix space before '[' error

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Ar

[PATCH 1/2] HID: usbkbd: constify usb_device_id and fix space before '[' error.

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Ar

[PATCH 0/2] constify hid usb_device_id and fix space before '[' error

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Arvind Yadav (2): [PATC

[PATCH 4/4] [media] usb: constify videobuf_queue_ops structures

2017-08-22 Thread Arvind Yadav
videobuf_queue_ops are not supposed to change at runtime. All functions working with videobuf_queue_ops provided by work with const videobuf_queue_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/usb/cx231xx/cx231xx-417.c | 2 +- drivers/media/usb

[PATCH 2/4] [media] pci: constify videobuf_queue_ops structures

2017-08-22 Thread Arvind Yadav
videobuf_queue_ops are not supposed to change at runtime. All functions working with videobuf_queue_ops provided by work with const videobuf_queue_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/pci/bt8xx/bttv-driver.c | 2 +- drivers/media/pci/cx18

[PATCH 3/4] [media] platform: constify videobuf_queue_ops structures

2017-08-22 Thread Arvind Yadav
videobuf_queue_ops are not supposed to change at runtime. All functions working with videobuf_queue_ops provided by work with const videobuf_queue_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/platform/davinci/vpfe_capture.c | 2 +- drivers/media

[PATCH 1/4] [media] saa7146: constify videobuf_queue_ops structures

2017-08-22 Thread Arvind Yadav
videobuf_queue_ops are not supposed to change at runtime. All functions working with videobuf_queue_ops provided by work with const videobuf_queue_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/common/saa7146/saa7146_vbi.c | 2 +- drivers/media

[PATCH 0/4] constify videobuf_queue_ops structures

2017-08-22 Thread Arvind Yadav
videobuf_queue_ops are not supposed to change at runtime. All functions working with videobuf_queue_ops provided by work with const videobuf_queue_ops. So mark the non-const structs as const. Arvind Yadav (4): [PATCH 1/4] [media] saa7146: constify videobuf_queue_ops structures [PATCH 2/4

[PATCH] USB: core: constify vm_operations_struct

2017-08-24 Thread Arvind Yadav
vm_operations_struct are not supposed to change at runtime. All functions working with const vm_operations_struct. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/core/devio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb

[RFT] lan78xx: FIX use-after-free in lan78xx_write_reg

2017-09-27 Thread Arvind Yadav
ould be freed last in lan78xx_disconnect(). Signed-off-by: Arvind Yadav --- drivers/net/usb/lan78xx.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index b99a7fb..e653982 100644 --- a/drivers/net/usb/lan