OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa83c2d
)
[PATCH] aoe 5/12: don't try to free null bufpool
author
ecashin@coraid.com
<ecashin@coraid.com>
Tue, 19 Apr 2005 05:00:19 +0000
(22:00 -0700)
committer
Greg KH
<greg@press.kroah.org>
Tue, 19 Apr 2005 05:00:19 +0000
(22:00 -0700)
don't try to free null bufpool
Signed-off-by: Ed L. Cashin <ecashin@coraid.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/block/aoe/aoedev.c
patch
|
blob
|
history
diff --git
a/drivers/block/aoe/aoedev.c
b/drivers/block/aoe/aoedev.c
index
a40a78a
..
ec16c64
100644
(file)
--- a/
drivers/block/aoe/aoedev.c
+++ b/
drivers/block/aoe/aoedev.c
@@
-146,7
+146,8
@@
aoedev_freedev(struct aoedev *d)
put_disk(d->gd);
}
kfree(d->frames);
- mempool_destroy(d->bufpool);
+ if (d->bufpool)
+ mempool_destroy(d->bufpool);
kfree(d);
}