[PATCH V3] usb: gadget: composite: Fix possible double free memory bug

2019-10-01 Thread Chandana Kishori Chiluveru
uf and cdev->os_desc_req from the previous configfs_composite_bind call. The free call on these stale values leads to double free. Hence, Fix this issue by setting request and buffer pointer to NULL after kfree. Signed-off-by: Chandana Kishori Chiluveru -

[PATCH V2] usb: gadget: composite: Fix possible double free memory bug

2019-09-30 Thread Chandana Kishori Chiluveru
uf and cdev->os_desc_req from the previous configfs_composite_bind call. The free call on these stale values leads to double free. Hence, Fix this issue by setting request and buffer pointer to NULL after kfree. Signed-off-by: Chandana Kishori Chiluveru

[PATCH V3 1/3] dt-bindings: Introduce interconnect properties for Qualcomm DWC3 driver

2019-09-17 Thread Chandana Kishori Chiluveru
Add documentation for the interconnects and interconnect-names properties for USB as detailed by bindings/interconnect/interconnect.txt. Signed-off-by: Chandana Kishori Chiluveru --- Documentation/devicetree/bindings/usb/qcom,dwc3.txt | 13 + 1 file changed, 13 insertions(+) diff

[PATCH V3 3/3] arm64: dts: sdm845: Add interconnect properties for USB

2019-09-17 Thread Chandana Kishori Chiluveru
Populate USB DT nodes with interconnect properties. Signed-off-by: Chandana Kishori Chiluveru --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index fcb9330

[PATCH V3 2/3] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2019-09-17 Thread Chandana Kishori Chiluveru
Add interconnect support in dwc3-qcom driver to vote for bus bandwidth. This requires for two different paths - from USB master to DDR slave. The other is from APPS master to USB slave. Signed-off-by: Chandana Kishori Chiluveru --- drivers/usb/dwc3/dwc3-qcom.c | 145

[PATCH V3 0/3] ADD interconnect support for Qualcomm DWC3 driver

2019-09-17 Thread Chandana Kishori Chiluveru
H 2/3]" addressed > [PATCH 1/3] and [PATCH 3/3] remains unchanged Chandana Kishori Chiluveru (3): dt-bindings: Introduce interconnect properties for Qualcomm DWC3 driver usb: dwc3: qcom: Add interconnect support in dwc3 driver arm64: dts: sdm845: Add interconnect properties for USB

[PATCH V2 3/3] arm64: dts: sdm845: Add interconnect properties for USB

2019-09-16 Thread Chandana Kishori Chiluveru
Populate USB DT node with interconnect properties. Signed-off-by: Chandana Kishori Chiluveru --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index fcb9330

[PATCH V2 2/3] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2019-09-16 Thread Chandana Kishori Chiluveru
Add interconnect support in dwc3-qcom driver to vote for bus bandwidth. This requires for two different paths - from USB master to DDR slave. The other is from APPS master to USB slave. Signed-off-by: Chandana Kishori Chiluveru --- drivers/usb/dwc3/dwc3-qcom.c | 145

[PATCH V2 1/3] dt-bindings: Introduce interconnect bindings for usb

2019-09-16 Thread Chandana Kishori Chiluveru
Add documentation for the interconnects and interconnect-names bindings for USB as detailed by bindings/interconnect/interconnect.txt. Signed-off-by: Chandana Kishori Chiluveru --- Documentation/devicetree/bindings/usb/qcom,dwc3.txt | 13 + 1 file changed, 13 insertions(+) diff

[PATCH V2 0/3] ADD interconnect support for USB

2019-09-16 Thread Chandana Kishori Chiluveru
This path series aims to add interconnect support in dwc3-qcom driver on SDM845 SoCs. Changes since V1: > Comments by Georgi Djakov on "[PATCH 2/3]" addressed > [PATCH 1/3] and [PATCH 3/3] remains unchanged Chandana Kishori Chiluveru (3): dt-bindings: Introduce interconn

[PATCH 3/3] arm64: dts: sdm845: Add interconnect properties for USB

2019-09-10 Thread Chandana Kishori Chiluveru
Populate USB DT node with interconnect properties. Signed-off-by: Chandana Kishori Chiluveru --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index fcb9330

[PATCH 2/3] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2019-09-10 Thread Chandana Kishori Chiluveru
Add interconnect support in dwc3-qcom driver to vote for bus bandwidth. This requires for two different paths - from USB master to DDR slave. The other is from APPS master to USB slave. Signed-off-by: Chandana Kishori Chiluveru --- drivers/usb/dwc3/dwc3-qcom.c | 147

[PATCH 0/3] ADD interconnect support for USB

2019-09-10 Thread Chandana Kishori Chiluveru
This path series aims to add interconnect support in dwc3-qcom driver on SDM845 SoCs. Chandana Kishori Chiluveru (3): dt-bindings: Introduce interconnect bindings for usb usb: dwc3: qcom: Add interconnect support in dwc3 driver arm64: dts: sdm845: Add interconnect properties for USB

[PATCH 1/3] dt-bindings: Introduce interconnect bindings for usb

2019-09-10 Thread Chandana Kishori Chiluveru
Add documentation for the interconnects and interconnect-names bindings for USB as detailed by bindings/interconnect/interconnect.txt. Signed-off-by: Chandana Kishori Chiluveru --- Documentation/devicetree/bindings/usb/qcom,dwc3.txt | 13 + 1 file changed, 13 insertions(+) diff

[PATCH] [PATCH] usb: gadget: composite: Fix double free memory bug

2019-03-15 Thread Chandana Kishori Chiluveru
configfs_dev_cleanup function can double free os_desc and buffer when called from different context. For example, this can be called from composite_unbind() and when composite_bind() fails. Fix this issue by setting request and buffer pointer to NULL after kfree. Signed-off-by: Chandana Kishori