staging: vchiq_arm: Make debugfs failure non-fatal
authorPhil Elwell <phil@raspberrypi.org>
Tue, 12 Dec 2017 12:12:46 +0000 (12:12 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:57:26 +0000 (15:57 +0100)
It can be useful to be able to open multiple vchiq instances in a
single process. This currently fails due to a debugfs collision,
so make such a failure non-fatal.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

index 5a2b8fb459ebe086ec229f37b6381bdbe6f808ca..bc391fb6fa12e2d06ef945956fb3e9e83aa0283b 100644 (file)
@@ -1157,11 +1157,7 @@ vchiq_open(struct inode *inode, struct file *file)
                instance->state = state;
                instance->pid = current->tgid;
 
-               ret = vchiq_debugfs_add_instance(instance);
-               if (ret != 0) {
-                       kfree(instance);
-                       return ret;
-               }
+               (void)vchiq_debugfs_add_instance(instance);
 
                sema_init(&instance->insert_event, 0);
                sema_init(&instance->remove_event, 0);