projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dma-buf: remove dma_buf directory on bufinfo file creation errors
[cascardo/linux.git]
/
drivers
/
dma-buf
/
dma-buf.c
diff --git
a/drivers/dma-buf/dma-buf.c
b/drivers/dma-buf/dma-buf.c
index
7094b19
..
f03e515
100644
(file)
--- a/
drivers/dma-buf/dma-buf.c
+++ b/
drivers/dma-buf/dma-buf.c
@@
-907,8
+907,11
@@
static int dma_buf_init_debugfs(void)
err = dma_buf_debugfs_create_file("bufinfo", NULL);
- if (err)
+ if (err)
{
pr_debug("dma_buf: debugfs: failed to create node bufinfo\n");
+ debugfs_remove_recursive(dma_buf_debugfs_dir);
+ dma_buf_debugfs_dir = NULL;
+ }
return err;
}