[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <118921268.174494.1506270095800@email.1und1.de>
Date: Sun, 24 Sep 2017 18:21:35 +0200 (CEST)
From: Stefan Wahren <stefan.wahren@...e.com>
To: Phil Elwell <phil@...pberrypi.org>,
Aishwarya Pant <aishpant@...il.com>,
Eric Anholt <eric@...olt.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dan Carpenter <dan.carpenter@...cle.com>,
linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org,
Florian Fainelli <f.fainelli@...il.com>,
linux-rpi-kernel@...ts.infradead.org
Subject: Re: [PATCH v2 resend] staging: bcm2835-audio: Fix memory corruption
> Phil Elwell <phil@...pberrypi.org> hat am 24. September 2017 um 16:20 geschrieben:
>
>
> The previous commit (0adbfd46) fixed a memory leak but also freed a
> block in the success case, causing a stale pointer to be used with
> potentially fatal results. Only free the vchi_instance block in the
> case that vchi_connect fails; once connected, the instance is
> retained for subsequent connections.
>
> Simplifying the code by removing a bunch of gotos and returning errors
> directly.
>
> Signed-off-by: Phil Elwell <phil@...pberrypi.org>
> Fixes: 0adbfd4694c2 ("staging: bcm2835-audio: fix memory leak in bcm2835_audio_open_connection()")
Tested-by: Stefan Wahren <stefan.wahren@...e.com>
Powered by blists - more mailing lists