|
@@ -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)
|
|
const char __user *user_buf, size_t count, loff_t *ppos)
|
|
{
|
|
{
|
|
char buf[32];
|
|
char buf[32];
|
|
- int buf_size;
|
|
|
|
|
|
+ size_t buf_size;
|
|
|
|
|
|
buf_size = min(count, (sizeof(buf)-1));
|
|
buf_size = min(count, (sizeof(buf)-1));
|
|
if (copy_from_user(buf, user_buf, buf_size))
|
|
if (copy_from_user(buf, user_buf, buf_size))
|