]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: fix clk_get call
authorStanislaw Gruszka <sgruszka@redhat.com>
Sun, 29 Jan 2017 11:40:52 +0000 (12:40 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 31 Jan 2017 07:08:52 +0000 (09:08 +0200)
commit623c772545685379f5b0ac10771317012023580d
tree43aff96c2ee21d9e0fa2018457778a4de52053cd
parent956f7e638894d5ff41ce86fe2b3e3b259aa1f850
rt2x00: fix clk_get call

clk_get() takes two arguments and might return ERR_PTR(), so we
have to nullify pointer on that case, to do not break further call
to clk_get_rate().

Reported-by: Felix Fietkau <nbd@nbd.name>
Fixes: 363a535e741c ("rt2x00: add copy of clk for soc devices")
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2x00soc.c