[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dazuko-devel] Usage count patch

From: Gregory Hinton Nietsky
Subject: [Dazuko-devel] Usage count patch
Date: Sat, 17 Apr 2004 17:41:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040214

hi there i have had problems with kernel crashes when removeing the module while in use this should not happen as rmmod should fail
if it is in use the patch will circumvent this ...


--- dazuko_linux26.c    Sat Mar 27 17:31:16 2004
+++ dazuko_linux26.c.greg       Sat Apr 17 14:25:13 2004
@@ -47,6 +47,7 @@
static inline int dazuko_inode_permission(struct inode *inode, int mask, struct nameidata *nd);

static struct file_operations  fops = {
+                                       .owner = THIS_MODULE,
                                       read: linux_dazuko_device_read,
                                       write: linux_dazuko_device_write,
                                       ioctl: linux_dazuko_device_ioctl,

This message has been scanned for viruses and
dangerous content by Network Sentry, and is
believed to be clean.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]