Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3552725ima; Tue, 23 Oct 2018 07:42:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV63mhoJfoxLgkGjozpIloaWPv/efKh8gsneec439ga9aldH8CGDpXsMfRpf+FVIvUH0TxuhG X-Received: by 2002:a62:5b43:: with SMTP id p64-v6mr51142502pfb.122.1540305776925; Tue, 23 Oct 2018 07:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540305776; cv=none; d=google.com; s=arc-20160816; b=kYrMbDJZiVvR37+TnsBCHZ00MynpjQ8aG4P1ssNsfosc+O6YGiPqgL/DdM6tfa62qQ U9rlvBG0GUC6J+JYls/Shrs+7F+LyIrVVJGmS+YDjXWgcvLMJ74dJiouDL2xO1dxs1Nt xWHHlu+T5IZ5BNrBJ8eXqKeEt8mUDxw4qlOIsHvS48xJTiq+7Go6KzSAYaueVr37fqb5 PhN9iVyQMIb2/4MhIysP8nQIAWG1altDKUQKcey4T8H5wfE9XRyiMWOz5J7gw70QfyMl 6ZuxKAt5PgXmqMXSUUlvu7dPyvbZE/29NfFKngnEIlxz4UXqBT6irtY7Snyep34FH9CF obXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=S34vi1pknEfgFnySW2nhPcWdFmOkr5iZrugOrE5ZEnw=; b=yfg5/EB8hF5/Zmoq2lSMzp/3cqcGDmVFkjqc9ECK5YnfpFlP+McYGsu+1uNfBLX4DR MPocXJcBduDbcBXmCmi6HWHzFNWOAAiFzqHeiVi/0WoFftH2mixIpkfnu6voJbJt2yqr uUDL5yuPTCRvBW6y3SFkhRmtptFBwovZYAl8y2NhhLfNLfMbWISutDVfym3KGu+SFHO+ YzScshibPirlNmqWvyrD/bgGCousHvPYRENFgAApdBfGeU9Ujmm/FkLISdAwkWJS431z NGIudc5jpCG3JJvWSiTmcWeNUC9PCjoCsF2SF+Ny4UnsieDt+ILJtQZeV9DDbigL9E/K THRw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t129-v6si1562730pfb.119.2018.10.23.07.42.40; Tue, 23 Oct 2018 07:42:56 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728298AbeJWXEM (ORCPT + 99 others); Tue, 23 Oct 2018 19:04:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37282 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726277AbeJWXEL (ORCPT ); Tue, 23 Oct 2018 19:04:11 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E9104356D5; Tue, 23 Oct 2018 14:40:28 +0000 (UTC) Received: from ceranb.redhat.com (ovpn-204-227.brq.redhat.com [10.40.204.227]) by smtp.corp.redhat.com (Postfix) with ESMTP id 01D1462A8A; Tue, 23 Oct 2018 14:40:26 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Sathya Perla , Ajit Khaparde , Sriharsha Basavapatna , Somnath Kotur , "David S. Miller" , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] Revert "be2net: remove desc field from be_eq_obj" Date: Tue, 23 Oct 2018 16:40:26 +0200 Message-Id: <20181023144026.26180-1-ivecera@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 23 Oct 2018 14:40:29 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/ethernet/emulex/benet/be.h | 1 + drivers/net/ethernet/emulex/benet/be_main.c | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index 58bcee8f0a58..ce041c90adb0 100644 --- 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 be_queue_info *q) struct be_eq_obj { struct be_queue_info q; + char desc[32]; struct be_adapter *adapter; struct napi_struct napi; diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 534787291b44..bff74752cef1 100644 --- 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_adapter *adapter) 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; -- 2.18.1