Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2452996imd; Fri, 2 Nov 2018 11:39:21 -0700 (PDT) X-Google-Smtp-Source: AJdET5ehU1T5cBEARDgz5hIV1y1mvVsKp5q8EewjkIM+nOPUMAyTYyUiJHKfc+IXtdJTiRt/Zhch X-Received: by 2002:a62:5793:: with SMTP id i19-v6mr13165606pfj.158.1541183961654; Fri, 02 Nov 2018 11:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541183961; cv=none; d=google.com; s=arc-20160816; b=Wun/6gAKy1judeHxkZJqUgGXUP9y0W0hAEoXdA8Dy4UbmZ01UCBhVOH4zKZnlZonk+ R4Ah+2FZO3hygDJPgMVF56XL173wUBGJreQTVaBjW5P98lJXYWHcSuMRf8UQpQEXdwhB 29SXY+O41rQ2MDof6xjFMiREYx0MjyTX8bjYjf1OYfVtOv4bA7CFvrUCMFg8zDonToQg JqVwxSpZ8QubhAo/xIACw5IAuPcNxLf3f2Cqxs+/gYnckqO3qMQ7NCLPyyNSPWGyiAZ6 sZX8zrmbb8cT0cirn4Zaol95h/z2kZefJzAzBfV7OqQWWMQKuKmtiixWqwY15ZOZldNe GqeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EP59R651eTq3+BW5rPxiFT1YnIdGS2ZlSzG7r4uSRUA=; b=w+CGSb2pl8Y2wIGa1wHG5jiH9KTelXJkDgavKbW29zsq1zmwnt0HSX8qI9ADHRsaNv iRRTfgTiCMjtrsOpLuVd6QVOE93puLWbxeNYiN4e77+9AiJ4pLbuD4l6mtK5/KG0AXZR BkPwk0ivjZhFZixEblQcyHQDErvpKN0AYwvfyWa9c4oqGbjbLTQqzyFNDjdgad0rOoyS n2S6fAAwaDZlFWALfUOacNSgZKf5Zf0hbSXIol8haGx78ROkqKTHTsA09DT/xVORtUUy PT5CKqDmuGoGkUYi1COCamFiNwk2PIto5lprZepDbohRUsXjm7MlGQyicjzD8CSZV8FP j83g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YITHwAc8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16-v6si32527492pgw.187.2018.11.02.11.39.06; Fri, 02 Nov 2018 11:39:21 -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=YITHwAc8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728724AbeKCDqM (ORCPT + 99 others); Fri, 2 Nov 2018 23:46:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:39876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727556AbeKCDqL (ORCPT ); Fri, 2 Nov 2018 23:46:11 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 77B4D2081B; Fri, 2 Nov 2018 18:38:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541183881; bh=oLe+FhyKueroUBkOvuSRmUGxNa7HCSzxXGbD5wZYYHo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YITHwAc8yPK6fIyDeZXHVZG2bbOwq87G+aQRpzs9UV1Cvr7NiXDjpXCcdbeLURrUM vWLMwWsa++w4g2IyvsfJ/AIo4BpsJGqqyD1zV1bSsqUFXNRXD+7elriynLACxtfvfv scL0f/vhfd0RHYdl7n/rHw/uaUeZWhJvtV20DNPY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ivan Vecera , "David S. Miller" Subject: [PATCH 4.19 19/24] Revert "be2net: remove desc field from be_eq_obj" Date: Fri, 2 Nov 2018 19:34:52 +0100 Message-Id: <20181102182842.695383897@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182839.725385066@linuxfoundation.org> References: <20181102182839.725385066@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ivan Vecera [ Upstream commit 5ef79151c2fbc401cf38325e9a32e77b9fc593ae ] The mentioned commit needs to be reverted because we cannot pass string allocated on stack to request_irq(). This function stores uses this pointer for later use (e.g. /proc/interrupts) so we need to keep this string persistently. Fixes: d6d9704af8f4 ("be2net: remove desc field from be_eq_obj") Signed-off-by: Ivan Vecera Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/emulex/benet/be.h | 1 + drivers/net/ethernet/emulex/benet/be_main.c | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -185,6 +185,7 @@ static inline void queue_tail_inc(struct struct be_eq_obj { struct be_queue_info q; + char desc[32]; struct be_adapter *adapter; struct napi_struct napi; --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -3488,11 +3488,9 @@ static int be_msix_register(struct be_ad int status, i, vec; for_all_evt_queues(adapter, eqo, i) { - char irq_name[IFNAMSIZ+4]; - - snprintf(irq_name, sizeof(irq_name), "%s-q%d", netdev->name, i); + sprintf(eqo->desc, "%s-q%d", netdev->name, i); vec = be_msix_vec_get(adapter, eqo); - status = request_irq(vec, be_msix, 0, irq_name, eqo); + status = request_irq(vec, be_msix, 0, eqo->desc, eqo); if (status) goto err_msix;