master - format_text: Report failed close.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=5d7614fcf971d66ccf27e765a110f01a0f2482ea Commit: 5d7614fcf971d66ccf27e765a110f01a0f2482ea Parent: cc72f340d757af537f239689944c934bf9b8fd62 Author: Alasdair G Kergon <[email protected]> AuthorDate: Fri Apr 4 02:28:10 2014 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Fri Apr 4 02:28:10 2014 +0100
format_text: Report failed close.
--- lib/format_text/format-text.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
lib/format_text/format-text.c +2 -1
@@ -322,7 +322,8 @@ static int _raw_read_mda_header(struct mda_header *mdah, struct device_area *dev return_0;if (!dev_read (dev_area->dev, dev_area->start,MDA_HEADER_SIZE , mdah)) { - (void )dev_close (dev_area->dev); +if (!dev_close (dev_area->dev)) + stack; return_0; }