diff options
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/info.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/core/info.c b/sound/core/info.c index 895362a696c9..291d6ed80d80 100644 --- a/sound/core/info.c +++ b/sound/core/info.c | |||
@@ -329,6 +329,9 @@ static ssize_t snd_info_text_entry_write(struct file *file, | |||
329 | if (!valid_pos(pos, count)) | 329 | if (!valid_pos(pos, count)) |
330 | return -EIO; | 330 | return -EIO; |
331 | next = pos + count; | 331 | next = pos + count; |
332 | /* don't handle too large text inputs */ | ||
333 | if (next > 16 * 1024) | ||
334 | return -EIO; | ||
332 | mutex_lock(&entry->access); | 335 | mutex_lock(&entry->access); |
333 | buf = data->wbuffer; | 336 | buf = data->wbuffer; |
334 | if (!buf) { | 337 | if (!buf) { |