diff options
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r-- | net/sunrpc/cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 900f5bc7e336..f509e9992767 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
@@ -177,7 +177,7 @@ void cache_register(struct cache_detail *cd) | |||
177 | cd->proc_ent = proc_mkdir(cd->name, proc_net_rpc); | 177 | cd->proc_ent = proc_mkdir(cd->name, proc_net_rpc); |
178 | if (cd->proc_ent) { | 178 | if (cd->proc_ent) { |
179 | struct proc_dir_entry *p; | 179 | struct proc_dir_entry *p; |
180 | cd->proc_ent->owner = THIS_MODULE; | 180 | cd->proc_ent->owner = cd->owner; |
181 | cd->channel_ent = cd->content_ent = NULL; | 181 | cd->channel_ent = cd->content_ent = NULL; |
182 | 182 | ||
183 | p = create_proc_entry("flush", S_IFREG|S_IRUSR|S_IWUSR, | 183 | p = create_proc_entry("flush", S_IFREG|S_IRUSR|S_IWUSR, |
@@ -185,7 +185,7 @@ void cache_register(struct cache_detail *cd) | |||
185 | cd->flush_ent = p; | 185 | cd->flush_ent = p; |
186 | if (p) { | 186 | if (p) { |
187 | p->proc_fops = &cache_flush_operations; | 187 | p->proc_fops = &cache_flush_operations; |
188 | p->owner = THIS_MODULE; | 188 | p->owner = cd->owner; |
189 | p->data = cd; | 189 | p->data = cd; |
190 | } | 190 | } |
191 | 191 | ||
@@ -195,7 +195,7 @@ void cache_register(struct cache_detail *cd) | |||
195 | cd->channel_ent = p; | 195 | cd->channel_ent = p; |
196 | if (p) { | 196 | if (p) { |
197 | p->proc_fops = &cache_file_operations; | 197 | p->proc_fops = &cache_file_operations; |
198 | p->owner = THIS_MODULE; | 198 | p->owner = cd->owner; |
199 | p->data = cd; | 199 | p->data = cd; |
200 | } | 200 | } |
201 | } | 201 | } |
@@ -205,7 +205,7 @@ void cache_register(struct cache_detail *cd) | |||
205 | cd->content_ent = p; | 205 | cd->content_ent = p; |
206 | if (p) { | 206 | if (p) { |
207 | p->proc_fops = &content_file_operations; | 207 | p->proc_fops = &content_file_operations; |
208 | p->owner = THIS_MODULE; | 208 | p->owner = cd->owner; |
209 | p->data = cd; | 209 | p->data = cd; |
210 | } | 210 | } |
211 | } | 211 | } |