summaryrefslogtreecommitdiff
path: root/Documentation/tty/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-06-15 14:32:32 +0800
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-06-29 16:39:06 +0200
commit82d9a2b45b170f0c52ac61e0e3e23f212cd065f0 (patch)
treef7469aea89ea0b9aa410d5beb3be51c80b9babfd /Documentation/tty/git@git.tavy.me:linux.git
parent75c0c09541b49daa08fddbc2c18c2232f4eab7d8 (diff)
mtd: nand: ecc-mtk: handle ECC clock enable failures
mtk_ecc_get() gets a reference to the ECC platform device, obtains the provider state and then enables the ECC clock before initializing the hardware. The clk_prepare_enable() return value is currently ignored. If enabling the clock fails, the code still touches the ECC registers and returns a live ECC handle to the caller. The provider device reference acquired by of_find_device_by_node() is also kept even though the handle setup failed. Propagate the clock enable error and drop the provider device reference on that failure path. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'Documentation/tty/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions