Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267386AbUJGR24 (ORCPT ); Thu, 7 Oct 2004 13:28:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267725AbUJGR24 (ORCPT ); Thu, 7 Oct 2004 13:28:56 -0400 Received: from fw.osdl.org ([65.172.181.6]:61599 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S267702AbUJGRZt (ORCPT ); Thu, 7 Oct 2004 13:25:49 -0400 Subject: Re: Probable module bug in linux-2.6.5-1.358 From: Stephen Hemminger To: "Richard B. Johnson" Cc: linux-kernel@vger.kernel.org In-Reply-To: References: <1097143144.2789.19.camel@laptop.fenrus.com> <20041007121741.GB23612@devserv.devel.redhat.com> <20041007122815.GC23612@devserv.devel.redhat.com> Content-Type: text/plain Organization: Open Source Development Lab Date: Thu, 07 Oct 2004 10:25:34 -0700 Message-Id: <1097169934.29576.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 587 Lines: 19 Still haven't full source so this is still guess work. But assuming it is a character device, did you forget to add an owner field to the file ops structure? static struct file_operations xxx_fops = { .owner = THIS_MODULE, .read = my_read, ... The owner field is used by the character device layer to maintain module ref counts in 2.6. - 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/