avdtp: Free discover when send_request returns error
authorChengyi <zhaochengyi@uniontech.com>
Tue, 21 Jun 2022 04:31:33 +0000 (12:31 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commitf400c40c7f41854020397995fcc5b67069d98239
tree78c619fe0403fa543abaa843894ecb4b471f3050
parente015fa8a4a2f62c0638181b05bf07a08cd2b10cf
avdtp: Free discover when send_request returns error

When send_request returns an error, session->discover should
be released here, so that the next time the program enters
avdtp_discover, the -EBUSY error will not be returned.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/avdtp.c