enic: do notify_check before returning credits
authorSujith Sankar <ssujith@cisco.com>
Wed, 25 Feb 2015 09:56:55 +0000 (15:26 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2015 20:53:43 +0000 (15:53 -0500)
commit2b0c2e2d2a43357fc51d3499bc405d0d05df2451
tree58e84252677c0f7b9f5b2f0fdad41d254ba640dd
parent31639b94cadc03727d0ae1f048e9688dd508883f
enic: do notify_check before returning credits

We should complete notify_check before returning the credits. Once we return the
credits, adaptor may access the notify data.

Signed-off-by: Sujith Sankar <ssujith@cisco.com>
Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_main.c