aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoedev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/aoe/aoedev.c')
-rw-r--r--drivers/block/aoe/aoedev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c
index 3968fe6c0077..6be7b3858340 100644
--- a/drivers/block/aoe/aoedev.c
+++ b/drivers/block/aoe/aoedev.c
@@ -295,6 +295,13 @@ freetgt(struct aoedev *d, struct aoetgt *t)
295{ 295{
296 struct frame *f; 296 struct frame *f;
297 struct list_head *pos, *nx, *head; 297 struct list_head *pos, *nx, *head;
298 struct aoeif *ifp;
299
300 for (ifp = t->ifs; ifp < &t->ifs[NAOEIFS]; ++ifp) {
301 if (!ifp->nd)
302 break;
303 dev_put(ifp->nd);
304 }
298 305
299 head = &t->ffree; 306 head = &t->ffree;
300 list_for_each_safe(pos, nx, head) { 307 list_for_each_safe(pos, nx, head) {