From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 19 Feb 2010 14:32:58 -0300 From: Johan Hedberg To: Daniel =?iso-8859-1?Q?=D6rstadius?= Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH] Fix double free on AVDTP Abort response Message-ID: <20100219173257.GA12855@jh-x301> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Daniel, On Fri, Feb 19, 2010, Daniel Örstadius wrote: > + if (session->req == AVDTP_ABORT) { > + /* Avoid freeing the Abort request here */ > + debug("handle_unanswered_req: Abort req, returning"); > + session->req->stream = NULL; > + return; > + } Please try to at least do a compile check before you submit patches. This one gives the following error: audio/avdtp.c: In function ‘handle_unanswered_req’: audio/avdtp.c:908: error: comparison between pointer and integer What you probably want is session->req->signal_id == AVDTP_ABORT. Johan