]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: OCTEON: add put_device() after of_find_device_by_node()
authorYe Guojin <ye.guojin@zte.com.cn>
Tue, 16 Nov 2021 08:10:51 +0000 (08:10 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 16 Dec 2021 14:57:57 +0000 (15:57 +0100)
commite292e34a2615940a9774b50c7c4f458b5b2bbe6e
tree6a33bd1d946f99a26ab19b37ecfcf0fea3e8a278
parent1f61cad3b9d19dd323574bac92f0bc4c34eb32d7
MIPS: OCTEON: add put_device() after of_find_device_by_node()

This was found by coccicheck:
./arch/mips/cavium-octeon/octeon-platform.c, 332, 1-7, ERROR missing
put_device; call of_find_device_by_node on line 324, but without a
corresponding object release within this function.
./arch/mips/cavium-octeon/octeon-platform.c, 395, 1-7, ERROR missing
put_device; call of_find_device_by_node on line 387, but without a
corresponding object release within this function.
./arch/mips/cavium-octeon/octeon-usb.c, 512, 3-9, ERROR missing
put_device; call of_find_device_by_node on line 515, but without a
corresponding object release within this function.
./arch/mips/cavium-octeon/octeon-usb.c, 543, 1-7, ERROR missing
put_device; call of_find_device_by_node on line 515, but without a
corresponding object release within this function.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/cavium-octeon/octeon-platform.c
arch/mips/cavium-octeon/octeon-usb.c