CDC NCM: release interfaces fix in unbind()
authorAlexey Orishko <alexey.orishko@gmail.com>
Tue, 24 May 2011 05:26:13 +0000 (05:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 May 2011 17:26:12 +0000 (13:26 -0400)
commit19694ac88d4a73c6f12159d9e53bd636319a69dc
treec9dcde3f1d990dc88a366320bbbedc71d5b3b467
parenteb722d7a2e11b0426a17acaa7336120acbc49406
CDC NCM: release interfaces fix in unbind()

Changes:
- claim slave/data interface during bind() and release
 interfaces in unbind() unconditionally
- in case of error during bind(), release claimed data
 interface in the same function
- remove obsolited "*_claimed" entries from driver context

Signed-off-by: Alexey Orishko <alexey.orishko@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c