diff options
author | Mike Isely <isely@pobox.com> | 2010-05-14 23:28:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-06-01 00:19:56 -0400 |
commit | 7a6ac34848226e315e0d70333bb4ab83190d9f1d (patch) | |
tree | ecb7902b2b8795caf53d648e4b4c3d5ebae6c56e /drivers/media/video/pvrusb2/pvrusb2-sysfs.c | |
parent | 28c4a5e6d32410f7c0b8fa9cc52eac424229f10a (diff) |
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>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-sysfs.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-sysfs.c | 2 |
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 { | |||
74 | int ctl_id; | 74 | int ctl_id; |
75 | struct pvr2_sysfs *chptr; | 75 | struct pvr2_sysfs *chptr; |
76 | struct pvr2_sysfs_ctl_item *item_next; | 76 | struct pvr2_sysfs_ctl_item *item_next; |
77 | struct attribute *attr_gen[7]; | 77 | struct attribute *attr_gen[8]; |
78 | struct attribute_group grp; | 78 | struct attribute_group grp; |
79 | int created_ok; | 79 | int created_ok; |
80 | char name[80]; | 80 | char name[80]; |