From 9714d587f138c1034b8fbeb14573e5f0320a2367 Mon Sep 17 00:00:00 2001 From: Francesco Lavra Date: Tue, 29 Dec 2009 15:48:04 -0300 Subject: [PATCH] V4L/DVB (13957): IR: Fix sysfs attributes declaration 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. Signed-off-by: Francesco Lavra Signed-off-by: Mauro Carvalho Chehab --- drivers/media/IR/ir-sysfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/IR/ir-sysfs.c b/drivers/media/IR/ir-sysfs.c index 6ec7f89d5142..bf5fbcd84238 100644 --- a/drivers/media/IR/ir-sysfs.c +++ b/drivers/media/IR/ir-sysfs.c @@ -125,6 +125,7 @@ static DEVICE_ATTR(current_protocol, S_IRUGO | S_IWUSR, static struct attribute *ir_dev_attrs[] = { &dev_attr_current_protocol.attr, + NULL, }; /** -- 2.20.1