gigaset: fix device ERROR response handling
authorTilman Schmidt <tilman@imap.cc>
Tue, 6 Oct 2009 12:18:46 +0000 (12:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2009 05:21:01 +0000 (22:21 -0700)
commit05eae94f2a2b6a05f10495c77162d0fecae67264
treeb640a53f7d81b61c019d504bc200b6f3d1dd1896
parent2038724cc785b3b186f0dfb0f8bfcea6468d9c4f
gigaset: fix device ERROR response handling

Clear out pending command that got rejected with 'ERROR' response.
This fixes the bug where unloading the driver module would hang
with the message: "gigaset: not searching scheduled commands: busy"
after a device communication error.

Impact: error handling bugfix
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/gigaset/ev-layer.c