Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7165663ybp; Wed, 16 Oct 2019 04:54:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxs6sRk+7n/9ouuPbLlhRQ7IMeX4QpFxvYOEYrVOeIDnUVftxk2o+ZFJY9IL8EjQi7K8o18 X-Received: by 2002:a17:906:fcd4:: with SMTP id qx20mr40017763ejb.257.1571226881789; Wed, 16 Oct 2019 04:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571226881; cv=none; d=google.com; s=arc-20160816; b=BQlOvYd3S68G/pQ8YVXkeJUheE+Bu6YUxdQmVKZHHo3pKlTLzSQ2vnL14aVgHvte0L MTlW1v/JuVStatzt2ks09KVUeg6HpdDkEHs0KWbE+7T3vaHEdUUgmGZGYNo/pRP1SM2f 9NplqrI6OirU2tMdpUlAQqeskA7sAug6RVqhkRJKP5grieLRwateS/YW8udAJZZ5OitD eLLauC6/beYTz/sDaOuNC1tOJPZcHU5Z213T43d27yfNOd9cBUahfOKaYwqxPGDQR91B DBwAO2DsAi+R1a7oLovudTc23XPLfY2VV9AloH3CjXK0zNwqUqvK/hrtkGA3qUhNGfvq XG+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=ReDX5O9O6DyhFrwtmXCCdKnrDWMIGyEKt4S0FrslYIY=; b=gpNCiAMlfOUsAfDIT/C5vU92JxDDMsB3naW3YjoaKeGK5AgDH6sbamGXh6XFylC8cL t/7wRA4EqmtYeqb3dVf8ZXs7ZhWqpxkSh0Wa1sRZ8RjtbkpPzhSE1lGx+1Fc2sIvaOXj 8xrT35jbp0J2TCFmVhjyI3aqRyfWaVL4VcTmN1/GPBKUvn7zdUWCR1x5M8ZVnwB2QH8g +NQ38Z/KDX0nRPjlvJRqE1+jM6I6nWo1Hc4d/kwRzUOBqpfiILjp8uiTuLDPU6PwxFwX xuJAwyepJ9uZgLQwZoHkPBNyXC5Z3FJtjWxOpGUqe7vnMEly3QDTDPtKkpILcqOFxGBi +UFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KLqvnONh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y50si16543706edd.237.2019.10.16.04.54.19; Wed, 16 Oct 2019 04:54:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KLqvnONh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388641AbfJPG2D (ORCPT + 99 others); Wed, 16 Oct 2019 02:28:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:59158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727444AbfJPG2C (ORCPT ); Wed, 16 Oct 2019 02:28:02 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3436F2082C; Wed, 16 Oct 2019 06:28:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571207282; bh=R3LJ895N9E9pE0cFFt4AtsD2smGUhoFnt5YlJuFUZrU=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=KLqvnONhSNhIfnY0+xnxfId7f03QWuyYJxNHiIYuqJaJRuQIBKd1l8Alfl3WgLc4B GYx1qbowvDDsLeGAdrikTqHtV7/QqfSYdSxfs9a6zhG193QF1QNsyrMWql1Mtx4Vsu bmF7RqRaxksaDAHyAKPyhhhbpJRgsgvUY7UHXY6c= Date: Wed, 16 Oct 2019 08:27:59 +0200 (CEST) From: Jiri Kosina To: Zhang Lixu cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, srinivas.pandruvada@linux.intel.com, benjamin.tissoires@redhat.com Subject: Re: [PATCH] hid: intel-ish-hid: fix wrong error handling in ishtp_cl_alloc_tx_ring() In-Reply-To: <20191016001559.27947-1-lixu.zhang@intel.com> Message-ID: References: <20191016001559.27947-1-lixu.zhang@intel.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Oct 2019, Zhang Lixu wrote: > When allocating tx ring buffers failed, should free tx buffers, not rx buffers. > > Signed-off-by: Zhang Lixu > Acked-by: Srinivas Pandruvada > --- > drivers/hid/intel-ish-hid/ishtp/client-buffers.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hid/intel-ish-hid/ishtp/client-buffers.c b/drivers/hid/intel-ish-hid/ishtp/client-buffers.c > index 1b0a0cc605e7..513d7a4a1b8a 100644 > --- a/drivers/hid/intel-ish-hid/ishtp/client-buffers.c > +++ b/drivers/hid/intel-ish-hid/ishtp/client-buffers.c > @@ -84,7 +84,7 @@ int ishtp_cl_alloc_tx_ring(struct ishtp_cl *cl) > return 0; > out: > dev_err(&cl->device->dev, "error in allocating Tx pool\n"); > - ishtp_cl_free_rx_ring(cl); > + ishtp_cl_free_tx_ring(cl); Applied to for-5.4/upstream-fixes, thanks. -- Jiri Kosina SUSE Labs