From: Oliver Neukum Subject: Re: cleanup of hiddev Date: Tue, 4 Nov 2008 18:56:47 +0100 Message-ID: <200811041856.47950.oliver@neukum.org> References: <200811031731.38055.oliver@neukum.org> <200811041629.39945.oliver@neukum.org> <49106B5D.5020701@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out003.kontent.com ([81.88.40.217]:40422 "EHLO smtp-out003.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752123AbYKDR4g (ORCPT ); Tue, 4 Nov 2008 12:56:36 -0500 In-Reply-To: <49106B5D.5020701@gmail.com> Content-Disposition: inline Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Jiri Slaby Cc: Jiri Kosina , linux-input@vger.kernel.org, linux-usb@vger.kernel.org Am Dienstag, 4. November 2008 16:33:49 schrieb Jiri Slaby: > Oliver Neukum napsal(a): > > Yes, I see. However, the device must not be registered before the table > > is correctly filled and the minor must be filled out before. A mutex then? > > It's enough to assign the hiddev_table after the register, isn't it? > Actually, it's how it's done now... BTW what was the reason to move with that? No, you have a race condition where open() for an announced device will fail. Regards Oliver