aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2010-05-15 00:28:44 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-06-01 01:19:56 -0300
commit7a6ac34848226e315e0d70333bb4ab83190d9f1d (patch)
treeecb7902b2b8795caf53d648e4b4c3d5ebae6c56e
parentV4L/DVB: pvrusb2: Fix USB parent device reference count (diff)
downloadlinux-dev-7a6ac34848226e315e0d70333bb4ab83190d9f1d.tar.xz
linux-dev-7a6ac34848226e315e0d70333bb4ab83190d9f1d.zip
V4L/DVB: pvrusb2: Fix minor internal array allocation
pvrusb2: Need one extra attribute slot allocated so that worst case still has a trailing null pointer. This wasn't causing visible symptoms; it was found through inspection while investigating other issues. Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
index bf478510a3b1..3d7e5aab547f 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
@@ -74,7 +74,7 @@ struct pvr2_sysfs_ctl_item {
int ctl_id;
struct pvr2_sysfs *chptr;
struct pvr2_sysfs_ctl_item *item_next;
- struct attribute *attr_gen[7];
+ struct attribute *attr_gen[8];
struct attribute_group grp;
int created_ok;
char name[80];