diff options
author | Ed Cashin <ecashin@coraid.com> | 2013-09-11 17:25:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 18:59:28 -0400 |
commit | fea1b139735355fe17a66f63811c58698ff03ec5 (patch) | |
tree | 3dcb175f3bb1fcde3dd4a3ba379e67ad13ff5a10 /drivers/block | |
parent | e0ec36059774ff51812b40509d28ca6c9a2a6a62 (diff) |
aoe: do not BUG if memory pressure prevented debugfs file creation
If the system has trouble allocating memory for the creation of the aoe
debugfs directory or of a file inside it, the debugfs member of an aoedev
can be NULL.
Do not treat a NULL debugfs pointer as a BUG on aoedev shutdown, avoiding
the user impact of an unecessary panic.
Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/aoe/aoeblk.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c index d63dcf0f2266..dd73e1ff1759 100644 --- a/drivers/block/aoe/aoeblk.c +++ b/drivers/block/aoe/aoeblk.c | |||
@@ -215,7 +215,6 @@ aoedisk_add_debugfs(struct aoedev *d) | |||
215 | void | 215 | void |
216 | aoedisk_rm_debugfs(struct aoedev *d) | 216 | aoedisk_rm_debugfs(struct aoedev *d) |
217 | { | 217 | { |
218 | BUG_ON(d->debugfs == NULL); | ||
219 | debugfs_remove(d->debugfs); | 218 | debugfs_remove(d->debugfs); |
220 | d->debugfs = NULL; | 219 | d->debugfs = NULL; |
221 | } | 220 | } |