summaryrefslogtreecommitdiffstats
path: root/net/netlink/netlink_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink/netlink_dev.c')
-rw-r--r--net/netlink/netlink_dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netlink/netlink_dev.c b/net/netlink/netlink_dev.c
index 94be0069b..b127137b2 100644
--- a/net/netlink/netlink_dev.c
+++ b/net/netlink/netlink_dev.c
@@ -144,6 +144,7 @@ static int netlink_open(struct inode * inode, struct file * file)
out:
open_map &= ~(1<<minor);
+ MOD_DEC_USE_COUNT;
return err;
}
@@ -185,6 +186,7 @@ static struct file_operations netlink_fops = {
netlink_ioctl,
NULL, /* netlink_mmap */
netlink_open,
+ NULL, /* flush */
netlink_release
};