[media] media: rc: lirc_dev: check kobject_set_name() result
[media] media: rc: lirc_dev: check kobject_set_name() result

Backport from upstream kernel:

commit b395cbac36e58a55729fe7e6262a3f0b1691bced
Author: Vasiliy Kulikov <segoon@openwall.com>
Date:   Fri Nov 26 14:06:41 2010 -0300

    [media] media: rc: lirc_dev: check kobject_set_name() result

    kobject_set_name() may fail with -ENOMEM, check for it.

    Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
    Acked-by: Jarod Wilson <14059c7158912dcae849c377925c87d46da48cdf@redhat.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

Signed-off-by: Jarod Wilson <14059c7158912dcae849c377925c87d46da48cdf@redhat.com>

stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc