diff options
Diffstat (limited to 'drivers/media/radio/wl128x/fmdrv_v4l2.c')
-rw-r--r-- | drivers/media/radio/wl128x/fmdrv_v4l2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/radio/wl128x/fmdrv_v4l2.c b/drivers/media/radio/wl128x/fmdrv_v4l2.c index 4f5c43d2566c..077d369a0173 100644 --- a/drivers/media/radio/wl128x/fmdrv_v4l2.c +++ b/drivers/media/radio/wl128x/fmdrv_v4l2.c | |||
@@ -84,6 +84,7 @@ static ssize_t fm_v4l2_fops_write(struct file *file, const char __user * buf, | |||
84 | struct fmdev *fmdev; | 84 | struct fmdev *fmdev; |
85 | 85 | ||
86 | ret = copy_from_user(&rds, buf, sizeof(rds)); | 86 | ret = copy_from_user(&rds, buf, sizeof(rds)); |
87 | rds.text[sizeof(rds.text) - 1] = '\0'; | ||
87 | fmdbg("(%d)type: %d, text %s, af %d\n", | 88 | fmdbg("(%d)type: %d, text %s, af %d\n", |
88 | ret, rds.text_type, rds.text, rds.af_freq); | 89 | ret, rds.text_type, rds.text, rds.af_freq); |
89 | if (ret) | 90 | if (ret) |