r8152: avoid start_xmit to schedule napi when napi is disabled
authorhayeswang <hayeswang@realtek.com>
Thu, 26 Jan 2017 01:38:32 +0000 (09:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:55 +0000 (06:41 +0200)
commite9ace99c4bb097a44b20b3e6d356e4dd9b5f0c02
tree63bd82a73020a4c1e8be3868ab09f67023e27493
parentc1a7106b3b0149c263998d801619f3023af03234
r8152: avoid start_xmit to schedule napi when napi is disabled

[ Upstream commit de9bf29dd6e4a8a874cb92f8901aed50a9d0b1d3 ]

Stop the tx when the napi is disabled to prevent napi_schedule() is
called.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/r8152.c