Loading arch/arm64/kernel/app_setting.c +8 −1 Original line number Diff line number Diff line Loading @@ -70,9 +70,16 @@ static int set_name(const char *str, struct kernel_param *kp) mutex_lock(&mutex); if (count < MAX_ENTRIES) { lib_names[count++] = name; lib_names[count] = name; /* * mb to ensure that the new lib_names entry is present * before updating the view presented by get_lib_names */ mb(); count++; } else { pr_err("app_setting: set name failed. Max entries reached\n"); kfree(name); mutex_unlock(&mutex); return -EPERM; } Loading Loading
arch/arm64/kernel/app_setting.c +8 −1 Original line number Diff line number Diff line Loading @@ -70,9 +70,16 @@ static int set_name(const char *str, struct kernel_param *kp) mutex_lock(&mutex); if (count < MAX_ENTRIES) { lib_names[count++] = name; lib_names[count] = name; /* * mb to ensure that the new lib_names entry is present * before updating the view presented by get_lib_names */ mb(); count++; } else { pr_err("app_setting: set name failed. Max entries reached\n"); kfree(name); mutex_unlock(&mutex); return -EPERM; } Loading