mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-01 13:22:53 +07:00
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>
This commit is contained in:
parent
e0ec360597
commit
fea1b13973
@ -215,7 +215,6 @@ aoedisk_add_debugfs(struct aoedev *d)
|
|||||||
void
|
void
|
||||||
aoedisk_rm_debugfs(struct aoedev *d)
|
aoedisk_rm_debugfs(struct aoedev *d)
|
||||||
{
|
{
|
||||||
BUG_ON(d->debugfs == NULL);
|
|
||||||
debugfs_remove(d->debugfs);
|
debugfs_remove(d->debugfs);
|
||||||
d->debugfs = NULL;
|
d->debugfs = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user