OSDN Git Service

avctp: Fix invalid file descriptor close
authorSyam Sidhardhan <s.syam@samsung.com>
Mon, 18 Feb 2013 16:04:43 +0000 (21:34 +0530)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 20 Feb 2013 07:59:22 +0000 (09:59 +0200)
commit4c5ba570aac02f88a3eba52985090f3bbb1c2663
treed0de91b936794583141b1a77af0529bb0228147a
parentf6c3832afab51e63d28db33b5d069f2a642b6aaa
avctp: Fix invalid file descriptor close

During avctp_confirm_cb(), if any error happens we set the session
state to AVCTP_STATE_DISCONNECTED, which inturn try to close fd 0.
profiles/audio/avctp.c