From: Brian Rogers Date: Wed, 22 Sep 2010 11:06:43 +0000 (-0300) Subject: V4L/DVB: ir-core: Fix null dereferences in the protocols sysfs interface X-Git-Tag: v2.6.36-rc8~32^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a08c7c68f702e2a2797a4035b6c0a756c4886c26;p=pandora-kernel.git V4L/DVB: ir-core: Fix null dereferences in the protocols sysfs interface For some cards, ir_dev->props and ir_dev->raw are both NULL. These cards are using built-in IR decoding instead of raw, and can't easily be made to switch protocols. So upon reading /sys/class/rc/rc?/protocols on such a card, return 'builtin' as the supported and enabled protocol. Return -EINVAL on any attempts to change the protocol. And most important of all, don't crash. Signed-off-by: Brian Rogers Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed