debugfs: fix missing mutex_destroy() in short_fops case

we need that in ->real_fops == NULL, ->short_fops != NULL case

Fixes: 8dc6d81c6b2a "debugfs: add small file operations for most files"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/20241229081223.3193228-1-viro@zeniv.linux.org.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by Al Viro and committed by Greg Kroah-Hartman 24edfbde f8f25893

Changed files
+1 -1
fs
debugfs
+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 }