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:
@@ -1749,11 +1749,7 @@ vchiq_open(struct inode *inode, struct file *file)
|
|||||||
instance->state = state;
|
instance->state = state;
|
||||||
instance->pid = current->tgid;
|
instance->pid = current->tgid;
|
||||||
|
|
||||||
ret = vchiq_debugfs_add_instance(instance);
|
(void)vchiq_debugfs_add_instance(instance);
|
||||||
if (ret != 0) {
|
|
||||||
kfree(instance);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
sema_init(&instance->insert_event, 0);
|
sema_init(&instance->insert_event, 0);
|
||||||
sema_init(&instance->remove_event, 0);
|
sema_init(&instance->remove_event, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user