]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dm log: fix dm_io_client leak on error paths
authorTakahiro Yasui <tyasui@redhat.com>
Tue, 6 Jan 2009 03:04:56 +0000 (03:04 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 6 Jan 2009 03:04:56 +0000 (03:04 +0000)
commitc7a2bd19b7c1e0bd2c7604c53d2583e91e536948
treebb896040c05397026745de9d05bd6f491d26603f
parent90fa1527bddc7147dc0d590ee6184ca88bc50ecf
dm log: fix dm_io_client leak on error paths

In create_log_context function, dm_io_client_destroy function needs
to be called, when memory allocation of disk_header, sync_bits and
recovering_bits failed, but dm_io_client_destroy is not called.

Cc: stable@kernel.org
Signed-off-by: Takahiro Yasui <tyasui@redhat.com>
Acked-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-log.c