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

Signed-off-by: Francesco Lavra <francescola...@interfree.it>

--- a/linux/drivers/media/IR/ir-sysfs.c 2009-12-29 19:36:04.000000000 +0100
+++ b/linux/drivers/media/IR/ir-sysfs.c 2009-12-29 19:36:49.000000000 +0100
@@ -127,6 +127,7 @@ static DEVICE_ATTR(current_protocol, S_I
 
 static struct attribute *ir_dev_attrs[] = {
        &dev_attr_current_protocol.attr,
+       NULL,
 };
 
 /**


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to