]> git.karo-electronics.de Git - linux-beck.git/commit
net: fec: improve error handling
authorTroy Kisky <troy.kisky@boundarydevices.com>
Fri, 5 Feb 2016 21:52:50 +0000 (14:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 11:14:51 +0000 (06:14 -0500)
commitfc75ba5159a63fad40442b9a9527a0f9b06de79b
tree7a7af961ad4e2214ac1e762ac30f0d97183bb2a6
parentbe293467b87c30cfdb24f74dcb225b693e436121
net: fec: improve error handling

Unmap initial buffer on error.
Don't free skb until it has been unmapped.
Move cbd_bufaddr assignment closer to the mapping function.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c