1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/usb/gadget/udc
Miaoqian Lin 4757c9ade3 usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe
of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
Add missing of_node_put() to avoid refcount leak.
of_node_put() will check NULL pointer.

Fixes: 24a28e4283 ("USB: gadget driver for LPC32xx")
Cc: stable <stable@kernel.org>
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220603140246.64529-1-linmq006@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-10 11:12:39 +02:00
..
aspeed-vhub usb: gadget: aspeed: remove usage of list iterator past the loop body 2022-03-15 18:19:44 +01:00
bdc usb: gadget: bdc: remove usage of list iterator past the loop body 2022-03-15 18:19:43 +01:00
amd5536udc.h USB: gadget: udc: Remove some dead code 2021-10-10 15:12:34 +02:00
amd5536udc_pci.c usb: gadget: udc: amd5536udc_pci fix null-ptr-dereference 2021-03-23 13:25:07 +01:00
at91_udc.c usb: gadget: udc: at91: remove usage of list iterator past the loop body 2022-03-15 18:19:43 +01:00
at91_udc.h usb: gadget: at91_udc: Convert to GPIO descriptors 2021-11-17 14:41:15 +01:00
atmel_usba_udc.c usb: gadget: udc: atmel: remove usage of list iterator past the loop body 2022-03-15 18:19:43 +01:00
atmel_usba_udc.h usb: gadget: udc: atmel: update endpoint allocation for sam9x60 2020-09-24 11:56:17 +03:00
bcm63xx_udc.c usb: gadget: udc: bcm63xx: propagate errors from platform_get_irq() 2021-12-17 16:54:23 +01:00
core.c USB: gadget: Add ID numbers to gadget names 2022-05-11 18:59:25 +02:00
dummy_hcd.c usb: gadget: eliminate anonymous module_init & module_exit 2022-03-18 12:53:18 +01:00
fotg210-udc.c fotg210-udc: Complete OUT requests on short packets 2021-03-26 14:43:47 +01:00
fotg210.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
fsl_qe_udc.c usb: gadget: fsl_qe_udc: Add missing semicolon in qe_ep_dequeue() 2022-03-19 13:46:06 +01:00
fsl_qe_udc.h usb: Spelling s/enpoint/endpoint/ 2019-11-04 15:53:00 +01:00
fsl_udc_core.c usb: gadget: fsl: remove usage of list iterator past the loop body 2022-03-15 18:19:43 +01:00
fsl_usb2_udc.h usb: gadget: fsl: properly remove remnant of MXC support 2021-06-14 10:31:51 +02:00
fusb300_udc.c usb: gadget: fusb300_udc: remove useless cast for driver.name 2020-02-19 11:10:25 +01:00
fusb300_udc.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
goku_udc.c usb: gadget: goku_udc: remove usage of list iterator past the loop body 2022-03-15 18:19:43 +01:00
goku_udc.h usb: gadget: udc: change comparison to bitshift when dealing with a mask 2018-03-08 15:12:00 +02:00
gr_udc.c usb: gadget: udc: gr_udc: remove usage of list iterator past the loop body 2022-03-15 18:19:43 +01:00
gr_udc.h USB: gr_udc: remove dentry storage for debugfs file 2021-06-02 16:41:00 +02:00
Kconfig ARM: omap: dma: make usb support optional 2022-04-21 15:01:53 +02:00
lpc32xx_udc.c usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe 2022-06-10 11:12:39 +02:00
m66592-udc.c usb: gadget: fix potential double-free in m66592_probe. 2020-05-25 11:09:43 +03:00
m66592-udc.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
Makefile usb: gadget: fsl_mxc_udc: Remove the driver 2020-12-28 15:41:33 +01:00
max3420_udc.c USB/Thunderbolt patches for 5.18-rc1 2022-03-26 13:08:25 -07:00
mv_u3d.h usb: Spelling s/enpoint/endpoint/ 2019-11-04 15:53:00 +01:00
mv_u3d_core.c usb: gadget: mv_u3d: remove usage of list iterator past the loop body 2022-03-15 18:19:44 +01:00
mv_udc.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
mv_udc_core.c usb: gadget: udc: mv_udc_core: remove usage of list iterator past the loop body 2022-03-15 18:19:44 +01:00
net2272.c usb: gadget: net2272: clean up comments 2022-04-21 19:20:42 +02:00
net2272.h USB: UDC: Implement udc_async_callbacks in net2272 2021-06-04 13:52:09 +02:00
net2280.c usb: gadget: net2280: use swap() instead of open coding it 2022-04-21 19:03:11 +02:00
net2280.h USB: UDC: Implement udc_async_callbacks in net2280 2021-06-04 13:52:06 +02:00
omap_udc.c USB / Thunderbolt changes for 5.19-rc1 2022-06-03 11:17:49 -07:00
omap_udc.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pch_udc.c usb: gadget: pch_udc: Convert Intel Quark quirk to use driver data 2021-03-26 14:44:17 +01:00
pxa25x_udc.c ARM: pxa: lubbock: pass udc irqs as resource 2022-05-07 22:55:47 +02:00
pxa25x_udc.h ARM: pxa: lubbock: pass udc irqs as resource 2022-05-07 22:55:47 +02:00
pxa27x_udc.c usb: gadget: pxa27x_udc: replace usage of rc to check if a list element was found 2022-03-15 18:19:45 +01:00
pxa27x_udc.h usb: gadget: pxa27x_udc: clean up comment 2022-04-21 19:20:42 +02:00
r8a66597-udc.c usb: gadget: r8a66597: fix a loop in set_feature() 2021-09-14 10:32:27 +02:00
r8a66597-udc.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
renesas_usb3.c usb: Drop commas after SoC match table sentinels 2022-03-03 15:45:15 +01:00
s3c-hsudc.c usb: gadget: s3c-hsudc: clean up comments 2022-04-21 19:20:42 +02:00
s3c2410_udc.c usb: gadget: udc: s3c2410: remove usage of list iterator past the loop body 2022-03-15 18:19:45 +01:00
s3c2410_udc.h USB: gadget: s3c2410_udc: remove dentry storage for debugfs file 2021-05-21 13:45:36 +02:00
s3c2410_udc_regs.h usb: gadget: s3c: use platform resources 2020-08-19 20:58:22 +02:00
snps_udc_core.c usb: gadget: udc: fix typos in comments 2022-03-15 15:24:24 +01:00
snps_udc_plat.c USB: gadget: udc: Remove some dead code 2021-10-10 15:12:34 +02:00
tegra-xudc.c usb: gadget: tegra-xudc: clean up comments 2022-04-21 19:20:42 +02:00
trace.c USB: gadget: udc: fix kernel-doc syntax in file headers 2021-05-24 15:27:03 +02:00
trace.h USB: gadget: udc: fix kernel-doc syntax in file headers 2021-05-24 15:27:03 +02:00
udc-xilinx.c usb: gadget: udc: Remove useless variable assignment in xudc_read_fifo() 2022-05-12 13:58:27 +02:00