From: Wei, Jiangang <weijg.fnst@cn.fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/2] kernel/io/disktest: cleanup upon failure occurs
Date: Tue, 24 Nov 2015 06:19:44 +0000 [thread overview]
Message-ID: <1448345982.1818.2.camel@localhost> (raw)
In-Reply-To: <1448345330-23620-1-git-send-email-weijg.fnst@cn.fujitsu.com>
Hi,
Sorry for that this patch has indent problem.
Please ignore both of them.
I will resend v2.
On Tue, 2015-11-24 at 14:08 +0800, Wei Jiangang wrote:
> Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
> ---
> testcases/kernel/io/disktest/dump.c | 2 ++
> testcases/kernel/io/disktest/main.c | 1 +
> 2 files changed, 3 insertions(+)
>
> diff --git a/testcases/kernel/io/disktest/dump.c b/testcases/kernel/io/disktest/dump.c
> index 615e8b4..d83e571 100644
> --- a/testcases/kernel/io/disktest/dump.c
> +++ b/testcases/kernel/io/disktest/dump.c
> @@ -192,12 +192,14 @@ int do_dump(child_args_t * args)
> pMsg(ERR, args, "could not open %s.\n", args->device);
> pMsg(ERR, args, "%s: Error = %u\n", args->device,
> GETLASTERROR());
> + FREE(buff);
> return (-1);
> }
>
> TargetLBA = Seek(fd, args->start_lba * BLK_SIZE);
> if (TargetLBA != (args->start_lba * (OFF_T) BLK_SIZE)) {
> pMsg(ERR, args, "Could not seek to start position.\n");
> + FREE(buf);
> CLOSE(fd);
> return (-1);
> }
> diff --git a/testcases/kernel/io/disktest/main.c b/testcases/kernel/io/disktest/main.c
> index 9484ec1..050ddea 100644
> --- a/testcases/kernel/io/disktest/main.c
> +++ b/testcases/kernel/io/disktest/main.c
> @@ -501,6 +501,7 @@ test_ll_t *run()
> &cleanArgs,
> "%s is not a regular file, could not be opened for reading, or was not found.",
> filespec);
> + FREE(aFilespec);
>
> return newTest;
> }
--
This message has been scanned for viruses and
dangerous content by FCNIC, and is
believed to be clean.
prev parent reply other threads:[~2015-11-24 6:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-24 6:08 [LTP] [PATCH 1/2] kernel/io/disktest: cleanup upon failure occurs Wei Jiangang
2015-11-24 6:08 ` [LTP] [PATCH 2/2] Fix the order between 2>&1 and >/dev/null Wei Jiangang
2015-11-24 6:21 ` [LTP] [PATCH v2 1/2] kernel/io/disktest: cleanup upon failure occurs Wei Jiangang
2015-11-24 6:21 ` [LTP] [PATCH v2 2/2] Fix the order between 2>&1 and >/dev/null Wei Jiangang
2015-11-24 14:10 ` Cyril Hrubis
2015-11-25 1:25 ` Wei, Jiangang
2015-11-25 1:34 ` [LTP] [PATCH v3 1/2] kernel/io/disktest: cleanup upon failure occurs Wei Jiangang
2015-11-25 1:34 ` [LTP] [PATCH v3 2/2] fix the redirection order Wei Jiangang
2015-11-26 12:43 ` Cyril Hrubis
2015-11-24 14:08 ` [LTP] [PATCH v2 1/2] kernel/io/disktest: cleanup upon failure occurs Cyril Hrubis
2015-11-25 1:27 ` Wei, Jiangang
2015-11-24 6:19 ` Wei, Jiangang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1448345982.1818.2.camel@localhost \
--to=weijg.fnst@cn.fujitsu.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox