[media] media: rc: lirc_dev: check kobject_set_name() result
authorVasiliy Kulikov <segoon@openwall.com>
Fri, 26 Nov 2010 17:06:41 +0000 (14:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:58 +0000 (08:16 -0200)
commitb395cbac36e58a55729fe7e6262a3f0b1691bced
treef84e410d258df3f890e891377bd681beb3381b33
parent801c73c04ad57689dc9b47baf62cbb23f954d987
[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 <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/lirc_dev.c