Return-Path: Received: from narfation.org ([79.140.41.39]:59569 "EHLO v3-1039.vlinux.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758265AbcEFUKM (ORCPT ); Fri, 6 May 2016 16:10:12 -0400 From: Sven Eckelmann To: gregkh@linuxfoundation.org Cc: linus.luessing@c0d3.blue, a@unstable.cc, mareklindner@neomailbox.ch, stable@vger.kernel.org, stable-commits@vger.kernel.org Subject: Re: Patch "batman-adv: Fix broadcast/ogm queue limit on a removed interface" has been added to the 3.14-stable tree Date: Fri, 06 May 2016 22:03:50 +0200 Message-ID: <1498923.rWPraOBnBH@sven-edge> In-Reply-To: <1462559816207195@kroah.com> References: <1462559816207195@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6680307.luXfX8A0yQ"; micalg="pgp-sha512"; protocol="application/pgp-signature" Sender: stable-owner@vger.kernel.org List-ID: --nextPart6680307.luXfX8A0yQ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" On Friday 06 May 2016 14:36:56 gregkh@linuxfoundation.org wrote: [...] > The filename of the patch is: > batman-adv-fix-broadcast-ogm-queue-limit-on-a-removed-interface.= patch > and it can be found in the queue-3.14 subdirectory. [...] > --- a/net/batman-adv/send.c > +++ b/net/batman-adv/send.c > @@ -637,6 +637,12 @@ batadv_purge_outstanding_packets(struct >=20 > =09=09if (pending) { > =09=09=09hlist_del(&forw_packet->list); > +=09=09=09if (!forw_packet->own) > +=09=09=09=09atomic_inc(&bat_priv->bcast_queue_left); > + > +=09=09=09if (!forw_packet->own) > +=09=09=09=09atomic_inc(&bat_priv->batman_queue_left); > + > =09=09=09batadv_forw_packet_free(forw_packet); > =09=09} > =09} >=20 This looks odd. Why is this commit doing the inc twice in the same plac= e?=20 Looks different than the origin patch (which does it for two different=20= places): https://patchwork.open-mesh.org/patch/15974/ Same for the 4.4 and 4.5 stable changes. I've cherry-picked the commit = for=20 3.14 and my results look like this (not even compile tested): =2D-- a/net/batman-adv/send.c +++ b/net/batman-adv/send.c @@ -610,6 +610,9 @@ batadv_purge_outstanding_packets(struct batadv_priv= =20 *bat_priv, =20 =09=09if (pending) { =09=09=09hlist_del(&forw_packet->list); +=09=09=09if (!forw_packet->own) +=09=09=09=09atomic_inc(&bat_priv->bcast_queue_left); + =09=09=09batadv_forw_packet_free(forw_packet); =09=09} =09} @@ -637,6 +640,9 @@ batadv_purge_outstanding_packets(struct batadv_priv= =20 *bat_priv, =20 =09=09if (pending) { =09=09=09hlist_del(&forw_packet->list); +=09=09=09if (!forw_packet->own) +=09=09=09=09atomic_inc(&bat_priv->batman_queue_left); + =09=09=09batadv_forw_packet_free(forw_packet); =09=09} =09} Kind regards, =09Sven --nextPart6680307.luXfX8A0yQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCgAGBQJXLPimAAoJEF2HCgfBJntGXOcQAINHLZsDB/Jn8VrVf4dodOCr VNIVvjiM90qkKnfaAroDiaXX/K0Ux40OHwIo0ypIMKIdw1SQhW35maQ6mHDL8BPs 0qDLjvBXQt/C9crQP2of6xx8BdfgnsUuXkyi8HDp5SL4pwfwXMMP3QRdcV2W27Ud 5hXC8YrIa+6Svw2Kadab2F13NW7SLnZnxM2nIklj4eIjdVbTd/ciNdHzgWeN6JR3 6GMq/Al3rvdoQJYzpRhwpSnx18zqall0bFsNicUNvU9lKfu/RtoMr4dKN5NL85FS UE3K/r01s+G8u/m7jaBI6CKyhQ0GOe4bihrXcqQtya8kMQtERt8+xG4KlZSTVbXt SUYzHHiXFCNVeVIkuljOSUg8V5810axUDLHRUjxYALWwjpkwsGYwys73/vExeeHU A+bRvswtFsK9YkYeYCwXeykoi1PSir3BYvSF9CL2rW48OO9L35bj6NH+VhT+MWTK FQlGFai17SiGLLWEiiYe8KdzWxB28/PM7CLquaDtMcJn6nmioeq9Or4GffSbnnlN O1ul0PJPM56nWpyyVN5ZXSYNBzq2Kb/FSePYtWYKTSnWcpFdsI3SrB/gM64qfhfO bSTsQ+RCclYoSbar7lwZvbfcF4AjGncT2Dfq2gYXk+WSmXOql6691lnUlejDAyhj qELrMuzrD4pQHsmycQKw =G/Za -----END PGP SIGNATURE----- --nextPart6680307.luXfX8A0yQ--