diff options
Diffstat (limited to 'drivers/hid/hidraw.c')
-rw-r--r-- | drivers/hid/hidraw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index a702e2f6da7d..1ca6f4635eeb 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c | |||
@@ -113,13 +113,13 @@ static ssize_t hidraw_write(struct file *file, const char __user *buffer, size_t | |||
113 | 113 | ||
114 | if (count > HID_MIN_BUFFER_SIZE) { | 114 | if (count > HID_MIN_BUFFER_SIZE) { |
115 | printk(KERN_WARNING "hidraw: pid %d passed too large report\n", | 115 | printk(KERN_WARNING "hidraw: pid %d passed too large report\n", |
116 | current->pid); | 116 | task_pid_nr(current)); |
117 | return -EINVAL; | 117 | return -EINVAL; |
118 | } | 118 | } |
119 | 119 | ||
120 | if (count < 2) { | 120 | if (count < 2) { |
121 | printk(KERN_WARNING "hidraw: pid %d passed too short report\n", | 121 | printk(KERN_WARNING "hidraw: pid %d passed too short report\n", |
122 | current->pid); | 122 | task_pid_nr(current)); |
123 | return -EINVAL; | 123 | return -EINVAL; |
124 | } | 124 | } |
125 | 125 | ||