From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Wunner Subject: Re: [PATCH v3 3/3] thunderbolt: Use Device ROM retrieved from EFI Date: Mon, 7 Nov 2016 12:28:17 +0100 Message-ID: <20161107112817.GA6428@wunner.de> References: <776fcc302f58628d1a122ba929751760c554cbfc.1478145888.git.lukas@wunner.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Andreas Noever Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Matt Fleming , Peter Jones , Ard Biesheuvel List-Id: linux-efi@vger.kernel.org On Mon, Nov 07, 2016 at 12:02:32AM +0100, Andreas Noever wrote: > On Thu, Nov 3, 2016 at 11:18 AM, Lukas Wunner wrote: > > +err: > > + kfree(sw->drom); > > Please also set sw->drom to NULL here. Otherwise sw->drom will be > freed again in the error path of tb_switch_alloc or in tb_switch_free. Eeeeeeeeeeeek! Thanks for spotting this, and thanks for the ack. > btw: any success in decoding the path crumbs property? TBH I haven't had time to look yet. :-( Best regards, Lukas