mtd: rawnand: pl353: fix clk reference leak in pl35x_nfc_setup_interface()
In the Linux kernel, the following vulnerability has been resolved: mtd: rawnand: pl353: fix clk reference leak in pl35x_nfc_setup_interface() pl35x_nfc_setup_interface() obtains a reference to the SMC "memclk" with of_clk_get_by_name() and only uses it to read the clock rate. The reference is never released: the function has many early return paths and no clk_put() call anywhere, so the clock reference is leaked. The hook is invoked repeatedly by the NAND core (nand_reset(), nand_setup_interface() and the NAND_DATA_IFACE_CHECK_ONLY mode probing loops), so the reference count keeps growing. Release the clock reference with clk_put() as soon as its rate has been read.