#include <libcfs/crypto/llcrypt.h>
#include "tracefile.h"
+struct lnet_debugfs_symlink_def {
+ const char *name;
+ const char *target;
+};
+
static struct dentry *lnet_debugfs_root;
BLOCKING_NOTIFIER_HEAD(libcfs_ioctl_list);
}
} else {
tmpstr = memdup_user_nul(buffer, nob);
- if (!tmpstr)
- return -ENOMEM;
+ if (IS_ERR(tmpstr))
+ return PTR_ERR(tmpstr);
rc = libcfs_debug_str2mask(mask, strim(tmpstr), is_subsys);
/* Always print LBUG/LASSERT to console, so keep this mask */