Re: [patch] stmmac: fix an error code in stmmac_ptp_register()

2016-10-15 Thread David Miller
From: Dan Carpenter Date: Fri, 14 Oct 2016 22:26:11 +0300 > PTR_ERR(NULL) is success. We have to preserve the error code earlier. > > Fixes: 7086605a6ab5 ("stmmac: fix error check when init ptp") > Signed-off-by: Dan Carpenter Good catch, applied.

[patch] stmmac: fix an error code in stmmac_ptp_register()

2016-10-14 Thread Dan Carpenter
PTR_ERR(NULL) is success. We have to preserve the error code earlier. Fixes: 7086605a6ab5 ("stmmac: fix error check when init ptp") Signed-off-by: Dan Carpenter --- Applies to net.git tree. diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c b/drivers/net/ethernet/stmicro/stmmac/stmm