]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/kprobes.c
Enabling DEBUG_STRICT_USER_COPY_CHECKS causes the following warning:
[karo-tx-linux.git] / kernel / kprobes.c
index 184d8987489d32c974b0f80dcab8fba992322e0b..d3466d09a7ca790048517ce5d712214873470be8 100644 (file)
@@ -2198,7 +2198,7 @@ static ssize_t write_enabled_file_bool(struct file *file,
               const char __user *user_buf, size_t count, loff_t *ppos)
 {
        char buf[32];
-       int buf_size;
+       size_t buf_size;
 
        buf_size = min(count, (sizeof(buf)-1));
        if (copy_from_user(buf, user_buf, buf_size))