Messages in this thread Patch in this message | | | Date | Tue, 19 Oct 2004 19:04:58 +0100 | From | Alasdair G Kergon <> | Subject | [PATCH] 2/2: device-mapper trivial: duplicate kfree in error path |
| |
Remove duplicate kfree in dm_register_target error path.
Signed-Off-By: Alasdair G Kergon <agk@redhat.com> --- diff/drivers/md/dm-target.c 2004-06-30 14:25:46.000000000 +0100 +++ source/drivers/md/dm-target.c 2004-10-19 16:53:56.000000000 +0100 @@ -120,10 +120,9 @@ return -ENOMEM; down_write(&_lock); - if (__find_target_type(t->name)) { - kfree(ti); + if (__find_target_type(t->name)) rv = -EEXIST; - } else + else list_add(&ti->list, &_targets); up_write(&_lock); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |