linux/drivers
Miaoqian Lin d24846a424 parisc: pdc_stable: Fix memory leak in pdcs_register_pathentries
kobject_init_and_add() takes reference even when it fails.
According to the doc of kobject_init_and_add():

   If this function returns an error, kobject_put() must be called to
   properly clean up the memory associated with the object.

Fix memory leak by calling kobject_put().

Fixes: 73f368cf67 ("Kobject: change drivers/parisc/pdc_stable.c to use kobject_init_and_add")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
2022-01-21 22:48:54 +01:00
..
accessibility tty: the rest, stop using tty_schedule_flip() 2021-11-25 18:35:23 +01:00
acpi We have a couple patches in the framework core this time around but 2022-01-12 17:02:27 -08:00
amba ARM: 9163/1: amba: Move of_amba_device_decode_irq() into amba_probe() 2021-12-17 11:34:35 +00:00
android binder: fix async_free_space accounting for empty parcels 2021-12-21 11:07:34 +01:00
ata libata: if T_LENGTH is zero, dma direction should be DMA_NONE 2021-12-17 09:32:13 +09:00
atm
auxdisplay auxdisplay: charlcd: checking for pointer reference before dereferencing 2021-11-24 11:46:52 +01:00
base driver core changes for 5.17-rc1 2022-01-12 11:11:34 -08:00
bcma pci-v5.16-changes 2021-11-06 14:36:12 -07:00
block for-5.17/drivers-2022-01-11 2022-01-12 10:35:23 -08:00
bluetooth TTY/Serial driver updates for 5.17-rc1 2022-01-12 11:21:52 -08:00
bus ARM: SoC driver updates for v5.17 2022-01-10 08:13:52 -08:00
cdrom block: remove GENHD_FL_EXT_DEVT 2021-11-29 06:38:35 -07:00
char tpmdd updates for Linux v5.17 2022-01-11 12:58:41 -08:00
clk We have a couple patches in the framework core this time around but 2022-01-12 17:02:27 -08:00
clocksource clocksource/drivers/arm_arch_timer: Force inlining of erratum_set_next_event_generic() 2021-12-10 17:47:00 +01:00
comedi
connector
counter
cpufreq cpufreq: amd-pstate: Fix Kconfig dependencies for AMD P-State 2022-01-06 18:31:33 +01:00
cpuidle cpuidle: use default_groups in kobj_type 2022-01-05 18:31:17 +01:00
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2022-01-11 10:21:35 -08:00
cxl cxl/core: Remove cxld_const_init in cxl_decoder_alloc() 2022-01-04 17:29:31 -08:00
dax dax: remove the copy_from_iter and copy_to_iter methods 2021-12-18 08:04:53 -08:00
dca
devfreq PM / devfreq: Reduce log severity for informative message 2021-12-16 11:29:54 +09:00
dio
dma dmaengine: st_fdma: fix MODULE_ALIAS 2021-12-13 13:18:48 +05:30
dma-buf driver core changes for 5.17-rc1 2022-01-12 11:11:34 -08:00
edac - Add support for version 3 of the Synopsys DDR controller to synopsys_edac 2022-01-10 11:45:23 -08:00
eisa
extcon
firewire SCSI misc on 20211105 2021-11-05 08:42:02 -07:00
firmware Devicetree updates for v5.17: 2022-01-12 16:47:05 -08:00
fpga
fsi
gnss
gpio Pin control bulk changes for the v5.17 kernel cycle 2022-01-12 10:56:08 -08:00
gpu Revert "drm/amd/display: Fix for otg synchronization logic" 2022-01-10 18:50:10 -08:00
greybus
hid Merge branch 'for-5.17/thrustmaster' into for-linus 2022-01-10 09:59:32 +01:00
hsi HSI: core: Fix return freed object in hsi_new_client 2021-11-26 00:27:06 +01:00
hv random: remove unused irq_flags argument from add_interrupt_randomness() 2022-01-07 00:25:25 +01:00
hwmon hwmon: (nzxt-smart2) make array detect_fans_report static const 2022-01-09 17:10:58 -08:00
hwspinlock
hwtracing
i2c ACPI updates for 5.17-rc1 2022-01-10 20:26:56 -08:00
i3c
idle
iio iio: trigger: stm32-timer: fix MODULE_ALIAS 2021-12-04 15:37:02 +00:00
infiniband driver core changes for 5.17-rc1 2022-01-12 11:11:34 -08:00
input TTY/Serial driver updates for 5.17-rc1 2022-01-12 11:21:52 -08:00
interconnect
iommu IOMMU Updates for Linux v5.17 2022-01-12 16:15:51 -08:00
ipack
irqchip irqchip/irq-bcm7120-l2: Add put_device() after of_find_device_by_node() 2021-12-10 13:23:13 +00:00
isdn Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-30 12:12:12 -08:00
leds LED updates for 5.17. Nothing major is happening here. 2022-01-12 16:59:22 -08:00
macintosh Merge branch 'akpm' (patches from Andrew) 2021-11-06 14:08:17 -07:00
mailbox
mcb
md dax + libnvdimm for v5.17 2022-01-12 15:46:11 -08:00
media media: si2157: add support for DVB-C Annex C 2022-01-10 15:56:50 +01:00
memory MTD core changes: 2022-01-11 11:35:28 -08:00
memstick
message pci-v5.16-changes 2021-11-06 14:36:12 -07:00
mfd driver core changes for 5.17-rc1 2022-01-12 11:11:34 -08:00
misc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-16 16:13:19 -08:00
mmc We have a couple patches in the framework core this time around but 2022-01-12 17:02:27 -08:00
most
mtd for-5.17/block-2022-01-11 2022-01-12 10:26:52 -08:00
mux
net TTY/Serial driver updates for 5.17-rc1 2022-01-12 11:21:52 -08:00
nfc nfc: st21nfca: remove redundant assignment to variable i 2021-12-30 17:26:58 -08:00
ntb
nubus
nvdimm dax: remove the copy_from_iter and copy_to_iter methods 2021-12-18 08:04:53 -08:00
nvme for-5.17/drivers-2022-01-11 2022-01-12 10:35:23 -08:00
nvmem
of Devicetree updates for v5.17: 2022-01-12 16:47:05 -08:00
opp
parisc parisc: pdc_stable: Fix memory leak in pdcs_register_pathentries 2022-01-21 22:48:54 +01:00
parport
pci dax + libnvdimm for v5.17 2022-01-12 15:46:11 -08:00
pcmcia drivers/pcmcia: Fix ifdef covering yenta_pm_ops 2022-01-11 14:45:19 -08:00
perf drivers: perf: marvell_cn10k: fix an IS_ERR() vs NULL check 2022-01-04 13:58:17 +00:00
phy Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-16 16:13:19 -08:00
pinctrl Pin control bulk changes for the v5.17 kernel cycle 2022-01-12 10:56:08 -08:00
platform driver core changes for 5.17-rc1 2022-01-12 11:11:34 -08:00
pnp
power platform-drivers-x86 for v5.17-1 2022-01-11 11:26:57 -08:00
powercap Merge back earlier power capping changes for v5.17 2021-12-27 16:51:12 +01:00
pps
ps3
ptp net: fix SOF_TIMESTAMPING_BIND_PHC to work with multiple sockets 2022-01-06 12:18:08 +00:00
pwm drm for 5.17-rc1 2022-01-10 12:58:46 -08:00
rapidio rapidio: avoid bogus __alloc_size warning 2021-11-06 13:30:33 -07:00
ras RAS/CEC: Remove a repeated 'an' in a comment 2021-12-11 11:55:27 +01:00
regulator regulator: Add MAX20086-MAX20089 driver 2022-01-07 13:36:35 +00:00
remoteproc
reset SoC: Add support for StarFive JH7100 RISC-V SoC 2022-01-10 08:32:37 -08:00
rpmsg remoteproc updates for v5.16 2021-11-10 09:07:26 -08:00
rtc RTC for 5.16 2021-11-12 11:44:31 -08:00
s390 dax + libnvdimm for v5.17 2022-01-12 15:46:11 -08:00
sbus
scsi for-5.17/block-2022-01-11 2022-01-12 10:26:52 -08:00
sh
siox
slimbus
soc ARM: SoC devicetree changes for v5.17 2022-01-10 08:24:40 -08:00
soundwire soundwire: intel: Use auxiliary_device driver data helpers 2021-12-22 13:59:01 +01:00
spi spi: Updates for v5.17 2022-01-11 12:19:47 -08:00
spmi
ssb
staging Staging drivers update for 5.17-rc1 2022-01-12 11:18:49 -08:00
target block: remove the gendisk argument to blk_execute_rq 2021-11-29 06:41:29 -07:00
tc
tee ARM: SoC driver updates for v5.17 2022-01-10 08:13:52 -08:00
thermal Thermal control updates for 5.17-rc1 2022-01-10 20:43:54 -08:00
thunderbolt thunderbolt: Add module parameter for CLx disabling 2021-12-28 10:43:56 +03:00
tty TTY/Serial driver updates for 5.17-rc1 2022-01-12 11:21:52 -08:00
uio
usb USB/Thunderbolt changes for 5.17-rc1 2022-01-12 11:27:57 -08:00
vdpa IOMMU Updates for Linux v5.17 2022-01-12 16:15:51 -08:00
vfio vfio/pci: Fix OpRegion read 2021-11-30 11:41:49 -07:00
vhost vdpa: check that offsets are within bounds 2021-12-08 14:53:15 -05:00
video - New Functionality 2022-01-11 12:24:20 -08:00
virt nitro_enclaves: Use get_user_pages_unlocked() call to handle mmap assert 2021-12-21 11:08:19 +01:00
virtio virtio_ring: Fix querying of maximum DMA mapping size for virtio device 2021-12-08 15:04:06 -05:00
visorbus
vlynq
vme
w1
watchdog watchdog: simatic-ipc-wdt: add new driver for Siemens Industrial PCs 2021-12-23 18:09:28 +01:00
xen arm/xen: Read extended regions from DT and init Xen resource 2022-01-06 09:53:41 +01:00
zorro
Kconfig
Makefile virtio: always enter drivers/virtio/ 2021-12-08 14:53:15 -05:00