mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
staging: vchiq_arm: Make debugfs failure non-fatal
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user