mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 08:44:52 +00:00
note: qca-nss-crypto, and qca-nss-cfi are non-code change releases, but align with naming scheme upstream anyways. Signed-off-by: Sean Khan <datapronix@protonmail.com>
15 lines
575 B
Diff
15 lines
575 B
Diff
--- a/nss_stats.c
|
|
+++ b/nss_stats.c
|
|
@@ -388,8 +388,9 @@ size_t nss_stats_print(char *node, char
|
|
*/
|
|
void nss_stats_create_dentry(char *name, const struct file_operations *ops)
|
|
{
|
|
- if (!debugfs_create_file(name, 0400, nss_top_main.stats_dentry, &nss_top_main, ops)) {
|
|
- nss_warning("Failed to create debug entry for subsystem %s\n", name);
|
|
+ if (!debugfs_lookup(name, nss_top_main.stats_dentry))
|
|
+ if (!debugfs_create_file(name, 0400, nss_top_main.stats_dentry, &nss_top_main, ops)) {
|
|
+ nss_warning("Failed to create debug entry for subsystem %s\n", name);
|
|
}
|
|
}
|
|
|