[media] Fix sysfs rc protocol lookup for rc-5-sz
authorAntti Seppälä <a.seppala@gmail.com>
Sun, 13 Feb 2011 10:29:15 +0000 (07:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 2 Mar 2011 16:44:40 +0000 (13:44 -0300)
With the current matching rules the lookup for rc protocol named rc-5-sz matches with "rc-5" before finding "rc-5-sz". Thus one is able to never enable/disable the rc-5-sz protocol via sysfs.

Fix the lookup to require an exact match which allows the manipulation of sz protocol.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

No differences found