Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754874AbbK3VJc (ORCPT ); Mon, 30 Nov 2015 16:09:32 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:46860 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752977AbbK3VJb (ORCPT ); Mon, 30 Nov 2015 16:09:31 -0500 Subject: Re: [PATCH] xen-pciback: fix up cleanup path when alloc fails To: Doug Goldstein , xen-devel@lists.xenproject.org References: <1448569959-7245-1-git-send-email-cardoe@cardoe.com> Cc: linux-kernel@vger.kernel.org, Bob Liu , Paul Durrant , Wei Liu , David Vrabel , Konrad Rzeszutek Wilk , Jonathan Creekmore From: Boris Ostrovsky Message-ID: <565CBB05.2090809@oracle.com> Date: Mon, 30 Nov 2015 16:09:25 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1448569959-7245-1-git-send-email-cardoe@cardoe.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 660 Lines: 17 On 11/26/2015 03:32 PM, Doug Goldstein wrote: > When allocating a pciback device fails, avoid the possibility of a > use after free. > > Reported-by: Jonathan Creekmore > Signed-off-by: Doug Goldstein > --- > drivers/xen/xen-pciback/xenbus.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Boris Ostrovsky -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/