kernel: minor fix (#122)
This commit is contained in:
@@ -102,7 +102,7 @@ int ksu_handle_rename(struct dentry *old_dentry, struct dentry *new_dentry)
|
|||||||
if (strcmp(buf, "/system/packages.list")) {
|
if (strcmp(buf, "/system/packages.list")) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
pr_info("renameat: %s -> %s\n, new path: %s", old_dentry->d_iname,
|
pr_info("renameat: %s -> %s, new path: %s", old_dentry->d_iname,
|
||||||
new_dentry->d_iname, buf);
|
new_dentry->d_iname, buf);
|
||||||
|
|
||||||
update_uid();
|
update_uid();
|
||||||
@@ -258,7 +258,7 @@ int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
|
|||||||
sizeof(array_length)) &&
|
sizeof(array_length)) &&
|
||||||
!copy_to_user(arg3, array,
|
!copy_to_user(arg3, array,
|
||||||
sizeof(u32) * array_length)) {
|
sizeof(u32) * array_length)) {
|
||||||
if (!copy_to_user(result, &reply_ok,
|
if (copy_to_user(result, &reply_ok,
|
||||||
sizeof(reply_ok))) {
|
sizeof(reply_ok))) {
|
||||||
pr_err("prctl reply error, cmd: %d\n",
|
pr_err("prctl reply error, cmd: %d\n",
|
||||||
arg2);
|
arg2);
|
||||||
|
|||||||
Reference in New Issue
Block a user