Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756720Ab3DSGoo (ORCPT ); Fri, 19 Apr 2013 02:44:44 -0400 Received: from mga02.intel.com ([134.134.136.20]:13470 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756318Ab3DSGon (ORCPT ); Fri, 19 Apr 2013 02:44:43 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,507,1363158000"; d="asc'?scan'208";a="320733425" Message-ID: <1366353879.15587.4.camel@jtkirshe-mobl> Subject: Re: [PATCH] e1000e: fix mismatch in mutex lock-unlock in e1000_reset_hw_82571() From: Jeff Kirsher Reply-To: jeffrey.t.kirsher@intel.com To: Alexey Khoroshilov Cc: Jesse Brandeburg , Bruce Allan , Carolyn Wyborny , Don Skidmore , Greg Rose , Peter P Waskiewicz Jr , Alex Duyck , e1000-devel@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org Date: Thu, 18 Apr 2013 23:44:39 -0700 In-Reply-To: <1366348518-5594-1-git-send-email-khoroshilov@ispras.ru> References: <1366348518-5594-1-git-send-email-khoroshilov@ispras.ru> Organization: Intel Corporation Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-XNn6EdDikOAzvLHf/8sQ" X-Mailer: Evolution 3.4.4 (3.4.4-2.fc17) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2073 Lines: 54 --=-XNn6EdDikOAzvLHf/8sQ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2013-04-18 at 22:15 -0700, Alexey Khoroshilov wrote: > If e1000_get_hw_semaphore_82574() succeed, it acquires swflag_mutex, > otherwise it does not. But the returned value of > e1000_get_hw_semaphore_82574() is ignored, so unlocking of > swflag_mutex > happens anyway. >=20 > The patch fixes the issue by breaking reset if MIC ownership is not > acquired. >=20 > Found by Linux Driver Verification project (linuxtesting.org). >=20 > Signed-off-by: Alexey Khoroshilov > --- > drivers/net/ethernet/intel/e1000e/82571.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-)=20 Thanks Alexey, I have added your patch to my queue. --=-XNn6EdDikOAzvLHf/8sQ 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 v1.4.13 (GNU/Linux) iQIcBAABCgAGBQJRcOfXAAoJEOVv75VaS+3OJm8P/j9JlZ1HT88QIs8e0eJDO7hO qx1+zgLvGZ3vnrWGecWwQVEJ8HUwcPDzwwRjah9Up1ybXhZkVQuVTtxhlylRzLao H0MdPH5mADbr9oa2JKo5JXgjcpfIUrV+nzYvujylCYHy5ozyHA73EBzRNwB8h8Ci 0jTkpvjqO7Kv2SkYIErc400AGenew6F6cYA2hYujxXc/X2N+GHS/BOi1ImO1mb5L z9QzDMRNt6u/H/CnPmY/SkQ/xWwmqaLHMHZ696A5rBYhojDj6PNJUgi0JnSql1NM JaauE7wpsJvuc4dwf9Xditw2FK1aG9bSzygUsogkDaIl8QVZ8Onyur6DuMlF4nfx qLeK++InEvp7MnUkQcyXSxKMC7IHjTTWQKuGlspfsA3adhzbEvqqHTCyNO8iAc3l ZKfIwg0WDyMrZpXHk9E236FAEJd5nb1UleA5eQ3fD3A1FBW0TztS88Qm7U2kOFWG OfCR33J3SFIXRYVLRcTVpaiRCp3vdth+mw2CYG03bGXDLxzMpbVeTw1+A1qlG4Dw BMc9d6zo/3+NcksB5jiJ+H8D4F8F5+DM0V++qPlaBx5lsrOUyG2HUhICxWPGp09G 25qHL06zKKqvfC94QEjp4X9y1o6usdjz/PeRW9SHX6x8uALRcwVebKMXeHFVKmZy MllP/4NoOIFEWROdcqlE =S0ff -----END PGP SIGNATURE----- --=-XNn6EdDikOAzvLHf/8sQ-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/