]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 18 Jan 2009 18:43:47 +0000 (10:43 -0800)
commit4a2ef76a1ad491ac798316ebbff00780da67916f
tree79ff4b677b5c1e39deac1aba1abb8c3a44c969f4
parent1d2f14fd4e53264f47344869a2321f79b6372feb
dm log: fix dm_io_client leak on error paths

commit c7a2bd19b7c1e0bd2c7604c53d2583e91e536948 upstream.

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.

Signed-off-by: Takahiro Yasui <tyasui@redhat.com>
Acked-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/dm-log.c