From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:42700 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757615AbdEWTjp (ORCPT ); Tue, 23 May 2017 15:39:45 -0400 Date: Tue, 23 May 2017 21:39:30 +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] IB/hfi1: Protect the global dev_cntr_names and port_cntr_names Message-ID: <20170523193930.GB11862@kroah.com> References: <20170523192000.23809.10271.stgit@phlsvslse11.ph.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170523192000.23809.10271.stgit@phlsvslse11.ph.intel.com> Sender: stable-owner@vger.kernel.org List-ID: On Tue, May 23, 2017 at 03:20:00PM -0400, Mike Marciniszyn wrote: > From: Tadeusz Struk > > commit d5483feda85a8f39ee2e940e279547c686aac30c 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 Thanks, but 4.10 is end-of-life. greg k-h