staging: vchiq_arm: add missing of_node_put
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 31 Oct 2016 14:39:29 +0000 (14:39 +0000)
committerJaechul Lee <jcsing.lee@samsung.com>
Fri, 18 Aug 2017 01:04:48 +0000 (10:04 +0900)
After device_node usage the refcount must be decremented with
of_node_put().

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

index 61992419b5f82f84c06b518892e2b0e0480f59bd..c926d984c8214ecf6c4eeb5157942cadd79c3e25 100644 (file)
@@ -2911,6 +2911,7 @@ static int vchiq_probe(struct platform_device *pdev)
        }
 
        fw = rpi_firmware_get(fw_node);
+       of_node_put(fw_node);
        if (!fw)
                return -EPROBE_DEFER;