Re: [PATCH] net: (cpts) fix a missing check of clk_prepare
From: Kangjie Lu Date: Tue, 25 Dec 2018 20:55:37 -0600 > clk_prepare() could fail, so let's check its status, and if it fails, > return its error code upstream. > > Signed-off-by: Kangjie Lu Applied.
[PATCH] net: (cpts) fix a missing check of clk_prepare
clk_prepare() could fail, so let's check its status, and if it fails, return its error code upstream. Signed-off-by: Kangjie Lu --- drivers/net/ethernet/ti/cpts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/ti/cpts.