Browse Source

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>
Mike Isely 15 years ago
parent
commit
7a6ac34848
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/media/video/pvrusb2/pvrusb2-sysfs.c

+ 1 - 1
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];