Message ID | b120228f-4d65-0543-c222-132ad779a40c@gmail.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DF32E6022E for <patchwork-linux-rdma@patchwork.kernel.org>; Sun, 6 Nov 2016 16:12:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D14A328C3E for <patchwork-linux-rdma@patchwork.kernel.org>; Sun, 6 Nov 2016 16:12:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5A8D28D62; Sun, 6 Nov 2016 16:12:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BE0A28C3E for <patchwork-linux-rdma@patchwork.kernel.org>; Sun, 6 Nov 2016 16:12:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752316AbcKFQM3 (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Sun, 6 Nov 2016 11:12:29 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:38263 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752305AbcKFQM0 (ORCPT <rfc822; linux-rdma@vger.kernel.org>); Sun, 6 Nov 2016 11:12:26 -0500 Received: by mail-wm0-f41.google.com with SMTP id f82so76273662wmf.1 for <linux-rdma@vger.kernel.org>; Sun, 06 Nov 2016 08:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=SoINmjBfmZ3tipnBwZAqs6Q8A41lJwzvffriBP2b4YU=; b=1Gxq+qnsNBsi0wxbZ67ry4P+TeNRFononr2fOyszpF+Fr4mAwPyy/qOrA+E3QmTxDG cjFC0VgQxpSsfGaiaqu+lbolpm9jUcAyLH7NOLjk8h8NJa401fV6QcfyVURo5BIY8sSa vNZPqGRHLkAP7Nlt62dKfNtr9QjuGZBB4RJRAE0NSMzyD9GFY73fHsHBNeOiKMd0yiWQ r9niJv0EaDRWR/O5B7ATPgFmN6QNe4GV2t+vLitLe+DPTubQ7JC/vfErterm06Q2wPKw 33m93K9wIGujHCaUzXaJucSfUxfq+PWsAxj/kDt6xQucMV7mML7FcQpGNsru3kZARt33 1hhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=SoINmjBfmZ3tipnBwZAqs6Q8A41lJwzvffriBP2b4YU=; b=lUTxMyQa78Jkqj84Q+WOPhOLHHk/jGiSCLuHGZiAfRD41W+xepVhbD4D5mtszcEP1h HlFNBSWdPdrV/lZZCVJFDI5yBCQAy/W2Ox3l10hTS7n+6Kp2+GQgWIkOeeZbzTj7hcej nawqVQT6qZpud1w/5Y15Cs8B5WS4IK/pPPHxP8bTbTSzYddppBXH4+KCdc3NYf5tMmWD FqoVPoXIWxeLuPqOi9FQYFpfDQRebyvBUK0bydQI6VoMOrhKNQfxh4QGOHy6NnY0s2gl k7tc0Pnp4KOSDHc4kyrcDiMCNF9iRsqRI6mLe71VcoDJbYNhNtFX0zClKKRbgoFoql8K moew== X-Gm-Message-State: ABUngvdugQvsZe/PfDuP1g5oNRTNO9mC1Bf2yjXbqrNoCDUrnr09LTxk+tqcttJE3+h3CA== X-Received: by 10.28.35.205 with SMTP id j196mr3337470wmj.62.1478448745307; Sun, 06 Nov 2016 08:12:25 -0800 (PST) Received: from [10.8.0.228] ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id gk6sm25822074wjc.21.2016.11.06.08.12.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Nov 2016 08:12:24 -0800 (PST) Subject: Re: Crash in mlx4 shutdown with 4.9-rc3 To: Leon Romanovsky <leon@kernel.org>, Steve Wise <swise@opengridcomputing.com> References: <01e001d236a7$e4c24160$ae46c420$@opengridcomputing.com> <20161105131513.GP3617@leon.nu> Cc: yishaih@mellanox.com, linux-rdma@vger.kernel.org, Majd Dibbiny <majd@mellanox.com>, Tariq Toukan <tariqt@mellanox.com> From: Tariq Toukan <ttoukan.linux@gmail.com> Message-ID: <b120228f-4d65-0543-c222-132ad779a40c@gmail.com> Date: Sun, 6 Nov 2016 18:12:23 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161105131513.GP3617@leon.nu> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
--- a/net/core/dev.c +++ b/net/core/dev.c @@ -6601,6 +6601,8 @@ int dev_get_phys_port_id(struct net_device *dev, if (!ops->ndo_get_phys_port_id) return -EOPNOTSUPP; + if (!netif_device_present(dev)) + return -ENODEV; return ops->ndo_get_phys_port_id(dev, ppid); } EXPORT_SYMBOL(dev_get_phys_port_id);