]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/fpga/stratix10-soc.c
blk-mq: insert passthrough request into hctx->dispatch directly
[linux.git] / drivers / fpga / stratix10-soc.c
index 13851b3d1c565dc9e3878efc53474915b4eec9d3..215d33789c74739aedb410baa26f3501c35d3e24 100644 (file)
@@ -507,12 +507,16 @@ static int __init s10_init(void)
        if (!fw_np)
                return -ENODEV;
 
+       of_node_get(fw_np);
        np = of_find_matching_node(fw_np, s10_of_match);
-       if (!np)
+       if (!np) {
+               of_node_put(fw_np);
                return -ENODEV;
+       }
 
        of_node_put(np);
        ret = of_platform_populate(fw_np, s10_of_match, NULL, NULL);
+       of_node_put(fw_np);
        if (ret)
                return ret;