File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,13 @@ static int open_proxy_open(struct inode *inode, struct file *filp)
175175 if (r )
176176 goto out ;
177177
178- real_fops = fops_get (real_fops );
179- if (!real_fops ) {
178+ if (!fops_get (real_fops )) {
179+ #ifdef MODULE
180+ if (real_fops -> owner &&
181+ real_fops -> owner -> state == MODULE_STATE_GOING )
182+ goto out ;
183+ #endif
184+
180185 /* Huh? Module did not clean up after itself at exit? */
181186 WARN (1 , "debugfs file owner did not clean up at exit: %pd" ,
182187 dentry );
@@ -305,8 +310,13 @@ static int full_proxy_open(struct inode *inode, struct file *filp)
305310 if (r )
306311 goto out ;
307312
308- real_fops = fops_get (real_fops );
309- if (!real_fops ) {
313+ if (!fops_get (real_fops )) {
314+ #ifdef MODULE
315+ if (real_fops -> owner &&
316+ real_fops -> owner -> state == MODULE_STATE_GOING )
317+ goto out ;
318+ #endif
319+
310320 /* Huh? Module did not cleanup after itself at exit? */
311321 WARN (1 , "debugfs file owner did not clean up at exit: %pd" ,
312322 dentry );
You can’t perform that action at this time.
0 commit comments