Skip to content
Snippets Groups Projects
Commit b8251050 authored by Joe Hattori's avatar Joe Hattori Committed by Greg Kroah-Hartman
Browse files

ata: sata_highbank: fix OF node reference leak in highbank_initialize_phys()


commit 676fe1f6 upstream.

The OF node reference obtained by of_parse_phandle_with_args() is not
released on early return. Add a of_node_put() call before returning.

Fixes: 8996b89d ("ata: add platform driver for Calxeda AHCI controller")
Signed-off-by: default avatarJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1a5b5f5b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment