]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: (cpts) fix a missing check of clk_prepare
authorKangjie Lu <kjlu@umn.edu>
Wed, 26 Dec 2018 02:55:37 +0000 (20:55 -0600)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:36 +0000 (14:21 -0300)
commit0a6d5d7f0c4e5c3fd296bb368215878261056a8d
treefd9f8b9cd05e9a8bab419a15f6daa1523f024785
parent3aadfe55448c925697579e1a50b404b2bb5449b5
net: (cpts) fix a missing check of clk_prepare

BugLink: https://bugs.launchpad.net/bugs/1855787
[ Upstream commit 2d822f2dbab7f4c820f72eb8570aacf3f35855bd ]

clk_prepare() could fail, so let's check its status, and if it fails,
return its error code upstream.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/ti/cpts.c