summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-03-28 23:36:32 -0600
committerMike Isely <isely@pobox.com>2006-03-28 23:36:32 -0600
commit0d7fd3cdc85eb7e7e64a735ee7242aad047f4d64 (patch)
tree04d3209e5bc8666497ad3f5e2b1365e72086f258
parentd213c7fd61512ba8605208f6b785829ff1da017b (diff)
downloadmediapointer-dvb-s2-0d7fd3cdc85eb7e7e64a735ee7242aad047f4d64.tar.gz
mediapointer-dvb-s2-0d7fd3cdc85eb7e7e64a735ee7242aad047f4d64.tar.bz2
Fix pvrusb2 kernel oops
From: Mike Isely <isely@pobox.com> This problem was introduced by the previous change. It appears that if you try to create to sysfs entries of the same name in one directory, then sysfs gets very angry and causes a kernel oops when you later try to tear down those nodes. By not allocating enough space to hold the name, we were inadvertently causing a sysfs control file name collision... Signed-off-by: Mike Isely <isely@pobox.com>
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
index 0ded41fcb..c5d44aa6c 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
@@ -58,7 +58,7 @@ struct pvr2_sysfs_ctl_item {
struct pvr2_sysfs_ctl_item *item_next;
struct attribute *attr_gen[5];
struct attribute_group grp;
- char name[25];
+ char name[80];
};
struct pvr2_sysfs_class {