Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B4AEC678D5 for ; Tue, 7 Mar 2023 18:47:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233285AbjCGSrz (ORCPT ); Tue, 7 Mar 2023 13:47:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233253AbjCGSrZ (ORCPT ); Tue, 7 Mar 2023 13:47:25 -0500 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C963F8E3D2 for ; Tue, 7 Mar 2023 10:36:39 -0800 (PST) Received: by mail-il1-x131.google.com with SMTP id x10so8904682ill.12 for ; Tue, 07 Mar 2023 10:36:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1678214193; 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=4HRJ9QjT9ee3B3xI3WGpaSfom/i+pMrAR/AAlnFcX0Q=; b=eCgfHyQGkoLcQhkjJyae1CNsPuS1w5bv68jcVvSLVuSagXXJ2IWgyCMzptps1NAViB Uxwvmx6PFKUjpEElyFLpW0pZUAMQ/c5VwPRmADmAmJJViMe/pejFBpXnnlLdNhRMt25O dAS8YQq2bj0pTqvzB8pO5wq1hvdb9GcQ2P2uw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678214193; 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=4HRJ9QjT9ee3B3xI3WGpaSfom/i+pMrAR/AAlnFcX0Q=; b=KFMKdqdYShyc8OtX4IkfLY4loADs98kjxgH3VhTIoYYMu7TYVMD8Z7DzIdOtMpGD8o K4bQLmjstBFspP4Hoy1ikt+0Ztwxoz7+amj6E8ZNuiczTE8if+jXboDCZePzVVJcGSqi MVP9jYf5yYyq+I1/mUjgGLqm90n/FPFqYlksEpXbbVcsfCdVg4i0D+J29k0sZaSRGTjK liCm44v9v4c0U5pd95Aug5Gb3V4wULxSW5CC5d2unhJG8rYcyGZ/Kt2VDwM/PlWneYGs iTJV1m0gfF5gmcxKphIYx4cERty6h8YxREhEehtnlYau0Sc9T7kuux1kh0s2nHsJ10dg 0gIg== X-Gm-Message-State: AO0yUKVJWmr4WB5/e+qe4EY4f4lHms9tOy7WbvMEkUgi1aDxZ1y4lMTU nbljXw00eOMo3mn4cdGJgh6hmIs+uZP4nof6g10= X-Google-Smtp-Source: AK7set8xu0nrT1LcBaf7uQbFwt57zOtmr+Tzv6cC0yNFk0b+EH9WS7LOlzHGk//Kt7TX7dr3FWtR+w== X-Received: by 2002:a05:6e02:1527:b0:317:9d52:23c7 with SMTP id i7-20020a056e02152700b003179d5223c7mr12743783ilu.16.1678214193394; Tue, 07 Mar 2023 10:36:33 -0800 (PST) Received: from mail-io1-f53.google.com (mail-io1-f53.google.com. [209.85.166.53]) by smtp.gmail.com with ESMTPSA id g15-20020a92d7cf000000b003157696c04esm3934789ilq.46.2023.03.07.10.36.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Mar 2023 10:36:32 -0800 (PST) Received: by mail-io1-f53.google.com with SMTP id bf15so5776329iob.7 for ; Tue, 07 Mar 2023 10:36:32 -0800 (PST) X-Received: by 2002:a6b:6a0a:0:b0:745:b287:c281 with SMTP id x10-20020a6b6a0a000000b00745b287c281mr7254210iog.2.1678214192165; Tue, 07 Mar 2023 10:36:32 -0800 (PST) MIME-Version: 1.0 References: <20230307164405.14218-1-johan+linaro@kernel.org> <20230307164405.14218-3-johan+linaro@kernel.org> In-Reply-To: <20230307164405.14218-3-johan+linaro@kernel.org> From: Doug Anderson Date: Tue, 7 Mar 2023 10:36:20 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/4] serial: qcom-geni: fix DMA mapping leak on shutdown To: Johan Hovold Cc: Greg Kroah-Hartman , Bjorn Andersson , Andy Gross , Konrad Dybcio , Jiri Slaby , Bartosz Golaszewski , Daniel Thompson , linux-arm-msm@vger.kernel.org, linux-serial@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 Hi, On Tue, Mar 7, 2023 at 8:43=E2=80=AFAM Johan Hovold wrote: > > Fix what appears to be a copy-paste error that can lead to a leaked DMA > mapping on close() and failure to restart TX after the port is reopened. > > Note that rx_dma_addr is generally NULL when > qcom_geni_serial_stop_tx_dma() is called as part of shutdown() (but > tx_dma_addr need not be). > > Fixes: 2aaa43c70778 ("tty: serial: qcom-geni-serial: add support for seri= al engine DMA") > Cc: Bartosz Golaszewski > Signed-off-by: Johan Hovold > --- > drivers/tty/serial/qcom_geni_serial.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Douglas Anderson