+1
-1
fs/debugfs/inode.c
+1
-1
fs/debugfs/inode.c
···
229
229
return;
230
230
231
231
/* check it wasn't a dir (no fsdata) or automount (no real_fops) */
232
-
if (fsd && fsd->real_fops) {
232
+
if (fsd && (fsd->real_fops || fsd->short_fops)) {
233
233
WARN_ON(!list_empty(&fsd->cancellations));
234
234
mutex_destroy(&fsd->cancellations_mtx);
235
235
}