Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp481106pxj; Fri, 11 Jun 2021 04:10:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6kGmDEa0Y9LtQrqJ1ZeU9B75Ty/n90hywdTn2mI1N55QHRNXhSxLfN2SHVdvvxyhNjR3Z X-Received: by 2002:a17:906:1701:: with SMTP id c1mr3157160eje.425.1623409833299; Fri, 11 Jun 2021 04:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623409833; cv=none; d=google.com; s=arc-20160816; b=jSk9d1HHAZPQhDF4fctMscMnXY3+2GMonSMQKsritYvc8v0i4xUiKefsKqFbJh6O+f peMDwHnHmvPVowdTOzRDR+koj/ID5UnvEBWz4ZJRHqpPXPK5IxgQMJDdVKsMrjgJR1cr GN05CMZtmEJLiD8eXyJDZHJ5DUgTZdk7ZuHOJ/xZJZ3plx3EsJ00eeIyajmHDdYhNvbB waXCnLsSg5ILskDB2xLxkv6tma5IRrOgJzjOBnrPgw7idjYA9IdQQmp7G3u7lA+FidiE OYc53EmfX5bowOn+ClRQHoZjfmiBEWA5o7jguput6odsnyYZyUb3cXHSHzlqHKkLmfLD 04CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=ADkKFntuAasNCvzj9rEXM+E2DnT0744x/L2MBhGhvTc=; b=oUUXiutWqOTNxINYL4XJ31IvBq2AC0D1tvJp2fxoVHjQdaaHBi9LzkTO+D17zrNFwZ gz9gdeZT1j0LAOwWn1bQXi196+MnUFshI8C0p3FUDvChx1ZqoYlzYRwAycowE9brmibZ qV0ubLb4HOAY/5n5gbET+a+/gDTanqop6Vphw+JLMhX1//cuHRND44Uyw0qngOw+ZN03 1VBPJRZjsQeMEkImdQyhb1ufkQ0L2K9h01DhHi14+dYSFIa1zb5aOiHhyp0FG6uj5gYf lgwsnMdyhv7fNFLmBUphKiZxGs0lY8AMdIBDlvgT9Ah1X6nNXxSebULBQEFxSJMBfcwF FqpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k12si4818655edi.292.2021.06.11.04.10.08; Fri, 11 Jun 2021 04:10:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbhFKLKd (ORCPT + 99 others); Fri, 11 Jun 2021 07:10:33 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:5507 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbhFKLKc (ORCPT ); Fri, 11 Jun 2021 07:10:32 -0400 Received: from nkgeml707-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G1dLC3dmlzZg9n; Fri, 11 Jun 2021 19:05:39 +0800 (CST) Received: from nkgeml706-chm.china.huawei.com (10.98.57.153) by nkgeml707-chm.china.huawei.com (10.98.57.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 11 Jun 2021 19:08:30 +0800 Received: from nkgeml706-chm.china.huawei.com ([10.98.57.153]) by nkgeml706-chm.china.huawei.com ([10.98.57.153]) with mapi id 15.01.2176.012; Fri, 11 Jun 2021 19:08:30 +0800 From: "Zhangjiantao (Kirin, nanjing)" To: "mathias.nyman@intel.com" , "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "Xuetao (kirin)" , "chenyu (U)" , Caiyadong , xuhaiyang , "Zhangjiantao (Kirin, nanjing)" Subject: [PATCH v2] xhci: solve a double free problem while doing s4 Thread-Topic: [PATCH v2] xhci: solve a double free problem while doing s4 Thread-Index: AQHXXqK7hImcHidT6ESyBJu1wIWDJKsOppkQ Date: Fri, 11 Jun 2021 11:08:30 +0000 Message-ID: <3f5f7a1a46a847ca8bb793050cf30b98@huawei.com> References: <1623403104-121391-1-git-send-email-xuetao09@huawei.com> In-Reply-To: <1623403104-121391-1-git-send-email-xuetao09@huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.137.38.30] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org d2hlbiBzeXN0ZW0gaXMgZG9pbmcgczQsIHRoZSBwcm9jZXNzIG9mIHhoY2lfcmVzdW1lIG1heSBi ZSBhcyBiZWxvdzoNCjHjgIF4aGNpX21lbV9jbGVhbnVwDQoy44CBeGhjaV9pbml0LT54aGNpX21l bV9pbml0LT54aGNpX21lbV9jbGVhbnVwKHdoZW4gbWVtb3J5IGlzIG5vdCBlbm91Z2gpLg0KeGhj aV9tZW1fY2xlYW51cCB3aWxsIGJlIGV4ZWN1dGVkIHR3aWNlIHdoZW4gc3lzdGVtIGlzIG91dCBv ZiBtZW1vcnkuDQp4aGNpLT5wb3J0X2NhcHMgaXMgZnJlZWQgaW4geGhjaV9tZW1fY2xlYW51cCxi dXQgaXQgaXNuJ3Qgc2V0IHRvIE5VTEwuDQpJdCB3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