Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755901AbYK3Nl1 (ORCPT ); Sun, 30 Nov 2008 08:41:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751384AbYK3NlP (ORCPT ); Sun, 30 Nov 2008 08:41:15 -0500 Received: from ik-out-1112.google.com ([66.249.90.182]:21619 "EHLO ik-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751362AbYK3NlN (ORCPT ); Sun, 30 Nov 2008 08:41:13 -0500 Message-ID: Date: Sun, 30 Nov 2008 14:41:11 +0100 From: "Kay Sievers" To: "Al Viro" Subject: Re: [PATCH] fix pktcdvd breakage from commit e105b8bfc769b0545b6f0f395179d1e43cbee822 Cc: "Linus Torvalds" , gregkh@suse.de, petero2@telia.com, linux-kernel@vger.kernel.org In-Reply-To: <20081130133229.GZ28946@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081130121909.GV28946@ZenIV.linux.org.uk> <20081130132118.GY28946@ZenIV.linux.org.uk> <20081130133229.GZ28946@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 990 Lines: 24 On Sun, Nov 30, 2008 at 14:32, Al Viro wrote: > On Sun, Nov 30, 2008 at 02:25:43PM +0100, Kay Sievers wrote: > >> Pktcdvd creates char _and_ block device nodes at the same time, while >> the char nodes are not allocated, but created and conflict in >> /sys/dev/ with properly allocated ones from other subsystems. Your >> patch just papers over this bug. > > Where the hell is it creating any char device nodes? Show me. Here the hell it is: pd->dev = device_create(class_pktcdvd, NULL, pd->pkt_dev, NULL, "%s", pd->name); The bogus "pkt_dev", it's a char dev_t value, but because the char dev_t value is already validly used by other subsystems, it will cause the broken /sys/dev/ link. That's the real bug. Kay -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/