From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754333AbZERMqw (ORCPT ); Mon, 18 May 2009 08:46:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751865AbZERMqk (ORCPT ); Mon, 18 May 2009 08:46:40 -0400 Received: from casper.infradead.org ([85.118.1.10]:50618 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903AbZERMqi (ORCPT ); Mon, 18 May 2009 08:46:38 -0400 Subject: Re: [patch 06/51] usb-serial: ftdi_sio: fix reference counting of ftdi_private From: David Woodhouse To: Greg KH Cc: linux-kernel@vger.kernel.org, stable@kernel.org, Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , Willy Tarreau , Rodrigo Rubira Branco , Jake Edge , Eugene Teo , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Alan Stern In-Reply-To: <20090514223521.148009855@mini.kroah.org> References: <20090514223235.348540705@mini.kroah.org> <20090514223521.148009855@mini.kroah.org> Content-Type: text/plain Date: Mon, 18 May 2009 13:46:32 +0100 Message-Id: <1242650792.30251.46.camel@macbook.infradead.org> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 (2.26.1-2.fc11) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2009-05-14 at 15:32 -0700, Greg KH wrote: > 2.6.29-stable review patch. If anyone has any objections, please let > us know. > > ------------------ > > From: Alan Stern > > commit c45d63202fbaccef7ef7946c03f27f72c809b1cc upstream. > > This patch (as1238) adds proper reference counting for ftdi_sio's > private data structure. Without it, the driver will free the > structure while it is still in use if the user unplugs the serial > device before closing the device file. > > The patch also replaces a slightly dangerous > cancel_delayed_work/flush_scheduled_work pair with > cancel_delayed_work_sync, which is always safer. > > Signed-off-by: Alan Stern > Reported-by: Daniel Mack > Tested-by: Daniel Mack > Signed-off-by: Greg Kroah-Hartman Works for me as long as you include the incremental patch I just sent. -- David Woodhouse Open Source Technology Centre David.Woodhouse@intel.com Intel Corporation