r8152: don't enable napi before rx ready
authorhayeswang <hayeswang@realtek.com>
Fri, 24 Jul 2015 05:54:25 +0000 (13:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 07:56:39 +0000 (00:56 -0700)
commit41cec84cf2858b59121a1cec5e9b09fc1bf1d882
tree633d458001b950f4133afef11e739e1f0bd8d056
parent7daed8dc2a4b48c5a7ea5b3243d01837ec1aed0a
r8152: don't enable napi before rx ready

Adjust napi_disable() and napi_enable() to avoid r8152_poll() start
working before rx ready. Otherwise, it may have race condition for
rx_agg.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c