From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com ([66.111.4.25]:42389 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968094AbdEWTzz (ORCPT ); Tue, 23 May 2017 15:55:55 -0400 Date: Tue, 23 May 2017 21:55:33 +0200 From: Greg KH To: Mike Marciniszyn Cc: stable@vger.kernel.org, linux-rdma@vger.kernel.org, stable-commits@vger.kernel.org Subject: Re: [PATCH v2] IB/hfi1: Protect the global dev_cntr_names and port_cntr_names Message-ID: <20170523195533.GA17694@kroah.com> References: <20170523194407.28059.59929.stgit@phlsvslse11.ph.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170523194407.28059.59929.stgit@phlsvslse11.ph.intel.com> Sender: stable-owner@vger.kernel.org List-ID: On Tue, May 23, 2017 at 03:44:29PM -0400, Mike Marciniszyn wrote: > From: Tadeusz Struk > > commit 62eed66e98b4c2286fef2ce5911d8d75b7515f7b upstream. > > Protect the global dev_cntr_names and port_cntr_names with the global > mutex as they are allocated and freed in a function called per device. > Otherwise there is a danger of double free and memory leaks. > > Cc: stable # v4.10 Why resend this???