Usage count patch

Gregory Hinton Nietsky <[email protected]>
Newsgroups gmane.linux.dazuko.devel
Message-ID <[email protected]>
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 ...

TTFN

--- 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.
http://www.networksentry.co.za
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.