Received: by 10.223.185.116 with SMTP id b49csp5449783wrg; Wed, 7 Mar 2018 11:59:15 -0800 (PST) X-Google-Smtp-Source: AG47ELsYqZCQKX96Ze8YGCBbBxIV/MbG/Rx97Mpb3ikjJEg5cu6BW7TL4emn4XA4DpMo5Y6F8PHZ X-Received: by 10.99.5.197 with SMTP id 188mr18988608pgf.196.1520452755075; Wed, 07 Mar 2018 11:59:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520452755; cv=none; d=google.com; s=arc-20160816; b=Ge6svK5xARoU4C363vIeNP8+bdxkpm4Le9LjR4KHw6YnTflMXAM1szIfBEvDKZ4iIU x1CpFCZwKOqfhL2iOk6zLatoZ/WZvuAdlcfqMt8Abmg44E/QhoOEnG/61UlGGbn4ubHt c0M5wSScsW69zKDxOzceyrFoP4V1c6Nah8uG8GI0Z64HC6wT8rBGbBGG04wx5LACKpJu uRqpCW/julgfyuunUsMyjze2NT9kp9LU6FfrEA8SYdY6jOV6T8D2MvXQybHH42ABPq2h okMeTQY3Y38JuyeF6/PwFrBX+rIgVgpjN1BLs7y8mXLdE9TjPbWf01zcYuL05FmQ/mhn 7rJg== 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 :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=a5TKtVBDcec/cfspB+lGsF7mUc2OyLXxMFIN+46j3+g=; b=UYqCJL6EbAo6g1HDRAgr0KDU8tvDwAYNb+NUZ5XfCueVNK1Nq46bvyA9Rbtr+6alZQ iJl+/AJ1BWerR6x6F+ZCVXZMKLxp35Sakzrrq32MPBXHPP/uYXtp6h/BDE8yYbAmsldh x/QzEJdgjCjLuSJllWcORcnr20sSVj0DvZU+R4HHbBxuP8Qu0CB3NECdO+aVHAnhwU2J AJDtlOGo+soPNaQlAP+/LYTD4XgZMI+8RPWyllilweNbnrR8JmkRpuN8s2QTjTwtqkJ5 kp7w4ifn82JcpqwlOZJqsLc82PnlbjbUg9lPO5Ma/GgzCKJaFDbNXdQqYuPxHmz/J8Gz nCtg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si11760609pgu.737.2018.03.07.11.59.00; Wed, 07 Mar 2018 11:59:15 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965614AbeCGT5v (ORCPT + 99 others); Wed, 7 Mar 2018 14:57:51 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44920 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754921AbeCGTrN (ORCPT ); Wed, 7 Mar 2018 14:47:13 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0B55910DA; Wed, 7 Mar 2018 19:47:12 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Julian Wiedmann , "David S. Miller" Subject: [PATCH 4.14 080/110] Revert "s390/qeth: fix using of ref counter for rxip addresses" Date: Wed, 7 Mar 2018 11:39:03 -0800 Message-Id: <20180307191050.049079635@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180307191039.748351103@linuxfoundation.org> References: <20180307191039.748351103@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Julian Wiedmann [ Upstream commit 4964c66fd49b2e2342da35358f2ff74614bcbaee ] This reverts commit cb816192d986f7596009dedcf2201fe2e5bc2aa7. The issue this attempted to fix never actually occurs. l3_add_rxip() checks (via l3_ip_from_hash()) if the requested address was previously added to the card. If so, it returns -EEXIST and doesn't call l3_add_ip(). As a result, the "address exists" path in l3_add_ip() is never taken for rxip addresses, and this patch had no effect. Fixes: cb816192d986 ("s390/qeth: fix using of ref counter for rxip addresses") Signed-off-by: Julian Wiedmann Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/s390/net/qeth_l3_main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c @@ -249,8 +249,7 @@ int qeth_l3_delete_ip(struct qeth_card * return -ENOENT; addr->ref_counter--; - if (addr->ref_counter > 0 && (addr->type == QETH_IP_TYPE_NORMAL || - addr->type == QETH_IP_TYPE_RXIP)) + if (addr->type == QETH_IP_TYPE_NORMAL && addr->ref_counter > 0) return rc; if (addr->in_progress) return -EINPROGRESS; @@ -328,9 +327,8 @@ int qeth_l3_add_ip(struct qeth_card *car kfree(addr); } } else { - if (addr->type == QETH_IP_TYPE_NORMAL || - addr->type == QETH_IP_TYPE_RXIP) - addr->ref_counter++; + if (addr->type == QETH_IP_TYPE_NORMAL) + addr->ref_counter++; } return rc;