Skip to contentSkip to conversation

IR: Fix sysfs attributes declaration

PATCH New Francesco Lavra 1 participant 1 message Dec 29, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IR: Fix sysfs attributes declaration

Hi,
This patch fixes the declaration of the sysfs attributes for IR's, which must be a NULL-terminated array of struct attribute *. Without this patch, my machine crashes when inserting a DVB card. I'm using a 2.6.32 kernel.
Regards,
Francesco

linux/drivers/media/IR/ir-sysfs.c +1 -0
@@ -127,6 +127,7 @@ static DEVICE_ATTR(current_protocol, S_I
 
 static struct attribute *ir_dev_attrs[] = {
 	&dev_attr_current_protocol.attr,
+	NULL,
 };
 
 /**