diff --git a/sumo.c b/sumo.c index e75a29a..884f752 100644 --- a/sumo.c +++ b/sumo.c @@ -107,15 +107,15 @@ ssize_t proc_pid_write(struct file *file, const char __user *buffer, *ppos = count; - ret = kstrtoull_from_user(buffer, count, 10, &pid); - if (ret) { - pr_err(MTAG "read PID failed %d\n", ret); - return count; - } + ret = kstrtoull_from_user(buffer, count, 10, &pid); + if (ret) { + pr_err(MTAG "read PID failed %d\n", ret); + return count; + } + + pr_info(MTAG "Got PID %llu\n", pid); + *ppos = count; - pr_info(MTAG "Got PID %llu\n", pid); - *ppos = count; - pid_struct = find_get_pid(pid); if (pid_struct == NULL) { pr_err(MTAG "find_get_pid() failed\n");