]> git.baikalelectronics.ru Git - kernel.git/commit
hso: don't change the state of a closed port
authorJan Dumon <j.dumon@option.com>
Tue, 5 Jan 2010 04:51:28 +0000 (04:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jan 2010 08:43:45 +0000 (00:43 -0800)
commite2e571d3c34e5638fb91f402e46120a937fafafd
treeec0b326a66ae8eea1b179c8b3b698b5c8d5020d0
parent58cc5c2169c2c806070ead4f7538c7492d605326
hso: don't change the state of a closed port

Don't change the state of a port if it's not open. This fixes an issue where a
port sometimes has to be opened twice before data can be received.

Signed-off-by: Jan Dumon <j.dumon@option.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c