diff options
| author | Christophe JAILLET <[email protected]> | 2021-08-06 06:46:11 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-08-18 14:02:08 +0000 |
| commit | 09cbd1df7d2615c19e40facbe31fdcb5f1ebfa96 (patch) | |
| tree | 86bf13a2e4c5d9e2b08b4462b6c0e1aa5256c117 /drivers/misc/lkdtm/bugs.c | |
| parent | char: move RANDOM_TRUST_CPU & RANDOM_TRUST_BOOTLOADER into the Character devi... (diff) | |
| download | kernel-09cbd1df7d2615c19e40facbe31fdcb5f1ebfa96.tar.gz kernel-09cbd1df7d2615c19e40facbe31fdcb5f1ebfa96.zip | |
firmware: raspberrypi: Fix a leak in 'rpi_firmware_get()'
The reference taken by 'of_find_device_by_node()' must be released when
not needed anymore.
Add the corresponding 'put_device()' in the normal and error handling
paths.
Fixes: 4e3d60656a72 ("ARM: bcm2835: Add the Raspberry Pi firmware driver")
Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/r/5e17e5409b934cd08bf6f9279c73be5c1cb11cce.1628232242.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/misc/lkdtm/bugs.c')
0 files changed, 0 insertions, 0 deletions
