From patchwork Sat Nov 28 13:39:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Qilong X-Patchwork-Id: 1407701 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4Ck5TY5F73z9sVK for ; Sun, 29 Nov 2020 09:17:37 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388895AbgK1Vtr (ORCPT ); Sat, 28 Nov 2020 16:49:47 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:8882 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727878AbgK1SZG (ORCPT ); Sat, 28 Nov 2020 13:25:06 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CjsvG41slz6vRv; Sat, 28 Nov 2020 21:35:38 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Sat, 28 Nov 2020 21:35:58 +0800 From: Zhang Qilong To: , , , CC: , Subject: [PATCH 0/2] can: Fix the error handling in c_can_power_up and kvaser_pciefd_open Date: Sat, 28 Nov 2020 21:39:20 +0800 Message-ID: <20201128133922.3276973-1-zhangqilong3@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The patch series fix the error handling to avoid the reference leak and wrong state for the net device. Zhang Qilong (2): can: c_can: Fix error handling in c_can_power_up can: kvaser_pciefd: Fix error handling in kvaser_pciefd_open drivers/net/can/c_can/c_can.c | 18 ++++++++++++++---- drivers/net/can/kvaser_pciefd.c | 4 +++- 2 files changed, 17 insertions(+), 5 deletions(-)