Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3468526rdb; Wed, 13 Sep 2023 13:01:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEiXgLoPNIlCDjG9IEDfbv9T/NpOWCwI3cv/23SY7cUpyROW6e8wZZngD1nu3sw2w25Rs7o X-Received: by 2002:a05:6358:9389:b0:134:cb1d:6737 with SMTP id h9-20020a056358938900b00134cb1d6737mr3828919rwb.7.1694635268681; Wed, 13 Sep 2023 13:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694635268; cv=none; d=google.com; s=arc-20160816; b=BB8es/sbSycSIKhYonUPs4DtY1ROAQ+jCCQrOEgtR/FrsHd6aXNyQqC40PC96b0nzL r39tX+TXF4QvpDX6+H7YINJbEAWSDoKL5OWohWDp9XAnd5Jc1xFwUNEUJCw0W0uFyN8A ZbU5MY5cb5Hym4zU2lhxY7dGQIlcRQR6hufz4bD+MxxnrsXz/wX+NAEF2i/O/1yoLcnL PiKdk53J5/kzKAU4awz9K0yuBN/fWJgfd1wf7C2SeJdoIl0zlcz5wJN/4Z2anXdDIZnw PF9hvBut9sSgVNluHpT39W05MknlMKH/2Ma3Zzy4qIWMeVg/PA8pWrUzfiaHqN0QDA22 vLZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=OPiMXPatZJVjyv7SBGb+AlKmkuYF/0lvNelGkcgX1eE=; fh=UIfF9XshKSy4adbqDZ5ogmQ52/9tXTuYsGQFckprWbc=; b=bEdD5es0ujX2AcMGkckAIxVFvSBUJbKua+bMu5R77x5XWAUNE7KMmHh1hpxpC72nmG OO0O1Xwm+hAKCNXHfdSj+qqSzaPwHc232803OJJyh70K37CK9Odvz5aO9v5P7sK5Yfot jg/QRi2PAntJugpP3D2BeuBntFxmWm2BroZz55HzICB9pBxbWd9UpM5I6tR5U2aZA8kL kJoHuAk/Vsk5w/srXlx2sm0/1njF0y6sedY+9GGksEHxbCU2TI3Yo8XpjOPU0tkJpdhi XibVQ3akrQGAbmtTjD0iqDh9LIs/ZIUPFfwnCJsuQOAkCMy7npzHpC0uE+TlFJaxwm4/ wV4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=b+sDv3R8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id r20-20020a6560d4000000b00573f867019fsi10548081pgv.443.2023.09.13.13.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 13:01:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=b+sDv3R8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 37730815CD99; Wed, 13 Sep 2023 06:42:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240950AbjIMNmu (ORCPT + 99 others); Wed, 13 Sep 2023 09:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233304AbjIMNms (ORCPT ); Wed, 13 Sep 2023 09:42:48 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D7AB19BB for ; Wed, 13 Sep 2023 06:42:44 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-52a250aa012so8829107a12.3 for ; Wed, 13 Sep 2023 06:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1694612563; x=1695217363; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OPiMXPatZJVjyv7SBGb+AlKmkuYF/0lvNelGkcgX1eE=; b=b+sDv3R8iV4tRXFYAvD5TO1w7dCln3c59/fQj6E1kou1FMYUwmDCAy9+NKzamE1nAK hYZOiFt0FFoQSFnvLcB5X/QwbC2Dk6L6z9t/2sE0frL0vzSZzSBlpjYlHHMieQghcjaj tLnA+2I+XF8SSG1IYAihI9zcWkLQ+uXEaG+7iKHSKGadzDWcWmN34bcqzS2IyjphDYuU gVUR/0UBuTUsQ7FW1/DSCAGa9hoHRZmvSWj+EuX6E+5IdUQ3rtiDZAl3Lpgc3xCUX9Yb HXIinCOlOG1BOrN7gKh3k6eq+pYBUGE7TbjmD0SQALArjb5hr1tpS7vfEfo9Tus0pk65 W3Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694612563; x=1695217363; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OPiMXPatZJVjyv7SBGb+AlKmkuYF/0lvNelGkcgX1eE=; b=XiMt1DRbKvzixpcS/MMXwsLgNCF9jaxNej/sQn2cDIkNlYJhl5N48XQa4lbIr7HVkR cKJEQYs3QAbiw1xuoq4uIinQqMBfJsi1QhEvGFr5v4gxdcgGfKybPM1wT+wwvo8czVEa x64tx6H+NISklrXI75eKPdFtOcCerL+YONG+jQnSEfccMr9xuWjf7dhD79kIU6FxXdw3 ugUv9mbkAupD6UfbbcSf1I7Rs8CEZqfdj/Ks2YvLMdHsVsX0sdttTgsjnI36mwadfDYS NcSev3/8kU31f013k01K2xsH+ozvrQ7GzaKh8/VhzfcZFeD1uT7bE/7UcwvIyXrmf60c uBEQ== X-Gm-Message-State: AOJu0Yw7TQnJxotUhJ0Xsv+0607rkVFEr+ZIKiCpuWCu9c7OYSW8YFU9 r+4QVCgfkh42yL7fhioWNhyojb3xYqQAelWfsBU+1w== X-Received: by 2002:a05:6402:2028:b0:523:1410:b611 with SMTP id ay8-20020a056402202800b005231410b611mr2261215edb.25.1694612563055; Wed, 13 Sep 2023 06:42:43 -0700 (PDT) MIME-Version: 1.0 References: <20230911170340.699533-1-mge@meta.com> <20230911170340.699533-2-mge@meta.com> In-Reply-To: <20230911170340.699533-2-mge@meta.com> From: Jinpu Wang Date: Wed, 13 Sep 2023 15:42:32 +0200 Message-ID: Subject: Re: [PATCH 2/2] pm80xx: Avoid leaking tags when processing OPC_INB_SET_CONTROLLER_CONFIG command To: Michal Grzedzicki Cc: jinpu.wang@cloud.ionos.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 06:42:50 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email On Mon, Sep 11, 2023 at 7:03=E2=80=AFPM Michal Grzedzicki wr= ote: > > Tags allocated for OPC_INB_SET_CONTROLLER_CONFIG command need to be freed > when we receive the response. > > Signed-off-by: Michal Grzedzicki can you please add the fixes tag, so stable can pick it accordingly? Acked-by: Jack Wang > --- > drivers/scsi/pm8001/pm80xx_hwi.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80x= x_hwi.c > index 1b2c40b1381c..3afd9443c425 100644 > --- a/drivers/scsi/pm8001/pm80xx_hwi.c > +++ b/drivers/scsi/pm8001/pm80xx_hwi.c > @@ -3671,10 +3671,12 @@ static int mpi_set_controller_config_resp(struct = pm8001_hba_info *pm8001_ha, > (struct set_ctrl_cfg_resp *)(piomb + 4); > u32 status =3D le32_to_cpu(pPayload->status); > u32 err_qlfr_pgcd =3D le32_to_cpu(pPayload->err_qlfr_pgcd); > + u32 tag =3D le32_to_cpu(pPayload->tag); > > pm8001_dbg(pm8001_ha, MSG, > "SET CONTROLLER RESP: status 0x%x qlfr_pgcd 0x%x\n", > status, err_qlfr_pgcd); > + pm8001_tag_free(pm8001_ha, tag); > > return 0; > } > -- > 2.34.1 >