r8152: check the status before submitting rx
authorhayeswang <hayeswang@realtek.com>
Fri, 9 Jan 2015 02:26:36 +0000 (10:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 21:10:22 +0000 (16:10 -0500)
commitef827a5b578c4255043a0c0032c88799fb4a774b
tree6e5d7fc4695dcdc621efab65ba4688ed2c19ecc7
parentaa2e092671c84b149ba0f9ad7185ace357fb4a33
r8152: check the status before submitting rx

Don't submit the rx if the device is unplugged, stopped, or
linking down.

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