[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1335730484-21083-1-git-send-email-Julia.Lawall@lip6.fr>
Date: Sun, 29 Apr 2012 22:14:44 +0200
From: Julia Lawall <Julia.Lawall@...6.fr>
To: "James E.J. Bottomley" <JBottomley@...allels.com>
Cc: kernel-janitors@...r.kernel.org, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] drivers/scsi/scsi_debug.c: add missing vfrees
From: Julia Lawall <Julia.Lawall@...6.fr>
Free dif_storep and fake_storep on failure as done in nearby error-handling
code.
Signed-off-by: Julia Lawall <Julia.Lawall@...6.fr>
---
drivers/scsi/scsi_debug.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index 182d5a5..16e44f8 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -3393,7 +3393,8 @@ static int __init scsi_debug_init(void)
printk(KERN_ERR
"%s: ERR: unmap_granularity < unmap_alignment\n",
__func__);
- return -EINVAL;
+ ret = -EINVAL;
+ goto free_vm;
}
map_size = (sdebug_store_sectors / scsi_debug_unmap_granularity);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists