From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753504Ab0IQUco (ORCPT ); Fri, 17 Sep 2010 16:32:44 -0400 Received: from www.tglx.de ([62.245.132.106]:42804 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752693Ab0IQUcn (ORCPT ); Fri, 17 Sep 2010 16:32:43 -0400 Date: Fri, 17 Sep 2010 22:32:35 +0200 (CEST) From: Thomas Gleixner To: "Eric W. Biederman" cc: Greg Kroah-Hartman , "Hans J. Koch" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] uio: Fix lack of locking in init_uio_class In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Sep 2010, Eric W. Biederman wrote: > > There is no locking in init_uio_class so multiple > drivers can race and create multiple uio classes. > > Fix this by simplifying the code. In particular always > register the uio class during module_init and make things > simpler. > > Signed-off-by: Eric W. Biederman Reviewed-by: Thomas Gleixner