]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: dwmac-socfpga: fix wrong pointer passed to PTR_ERR()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:00:09 +0000 (11:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jul 2016 18:07:38 +0000 (11:07 -0700)
commit7f10f20fb1195c1b6be532ab52bcd56dc6cf0d52
treebb9fa92d71a6d9e2071733cff5428b05e5b17aca
parent302bf74d712bc1b96a30a44b44a9acecf1a4dc5a
stmmac: dwmac-socfpga: fix wrong pointer passed to PTR_ERR()

PTR_ERR should access the value just tested by IS_ERR, otherwise
the wrong error code will be returned.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c