qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for-next? 0/2] qemu-img: Minor fixes to an amend error path
@ 2018-11-19 10:19 Max Reitz
  2018-11-19 10:19 ` [Qemu-devel] [PATCH for-next? 1/2] qemu-img: Fix typo Max Reitz
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Max Reitz @ 2018-11-19 10:19 UTC (permalink / raw)
  To: qemu-block; +Cc: qemu-devel, Max Reitz, qemu-stable, Kevin Wolf

One of the amend error paths has two issues that are fixed by this
series.  Since they are relatively minor and have been present in 3.0
already, I think there is no need to get them into 3.1.  OTOH they are
bug fixes, so they could go into 3.1 if you, dear reader, insist.


Max Reitz (2):
  qemu-img: Fix typo
  qemu-img: Fix leak

 qemu-img.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.17.2

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH for-next? 1/2] qemu-img: Fix typo
  2018-11-19 10:19 [Qemu-devel] [PATCH for-next? 0/2] qemu-img: Minor fixes to an amend error path Max Reitz
@ 2018-11-19 10:19 ` Max Reitz
  2018-11-19 10:19 ` [Qemu-devel] [PATCH for-next? 2/2] qemu-img: Fix leak Max Reitz
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Max Reitz @ 2018-11-19 10:19 UTC (permalink / raw)
  To: qemu-block; +Cc: qemu-devel, Max Reitz, qemu-stable, Kevin Wolf

Fixes: d402b6a21a825a5c07aac9251990860723d49f5d
Reported-by: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
---
 qemu-img.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qemu-img.c b/qemu-img.c
index 13a6ca31b4..a9a2470e1a 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -261,7 +261,7 @@ static int print_block_option_help(const char *filename, const char *fmt)
             return 1;
         }
         if (!proto_drv->create_opts) {
-            error_report("Protocal driver '%s' does not support image creation",
+            error_report("Protocol driver '%s' does not support image creation",
                          proto_drv->format_name);
             return 1;
         }
-- 
2.17.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH for-next? 2/2] qemu-img: Fix leak
  2018-11-19 10:19 [Qemu-devel] [PATCH for-next? 0/2] qemu-img: Minor fixes to an amend error path Max Reitz
  2018-11-19 10:19 ` [Qemu-devel] [PATCH for-next? 1/2] qemu-img: Fix typo Max Reitz
@ 2018-11-19 10:19 ` Max Reitz
  2018-11-21  1:23 ` [Qemu-devel] [Qemu-block] [PATCH for-next? 0/2] qemu-img: Minor fixes to an amend error path John Snow
  2018-11-21  9:48 ` [Qemu-devel] " Kevin Wolf
  3 siblings, 0 replies; 5+ messages in thread
From: Max Reitz @ 2018-11-19 10:19 UTC (permalink / raw)
  To: qemu-block; +Cc: qemu-devel, Max Reitz, qemu-stable, Kevin Wolf

create_opts was leaked here.  This is not too bad since the process is
about to exit anyway, but relying on that does not make the code nicer
to read.

Fixes: d402b6a21a825a5c07aac9251990860723d49f5d
Reported-by: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
---
 qemu-img.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qemu-img.c b/qemu-img.c
index a9a2470e1a..ad04f59565 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -263,6 +263,7 @@ static int print_block_option_help(const char *filename, const char *fmt)
         if (!proto_drv->create_opts) {
             error_report("Protocol driver '%s' does not support image creation",
                          proto_drv->format_name);
+            qemu_opts_free(create_opts);
             return 1;
         }
         create_opts = qemu_opts_append(create_opts, proto_drv->create_opts);
-- 
2.17.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-block] [PATCH for-next? 0/2] qemu-img: Minor fixes to an amend error path
  2018-11-19 10:19 [Qemu-devel] [PATCH for-next? 0/2] qemu-img: Minor fixes to an amend error path Max Reitz
  2018-11-19 10:19 ` [Qemu-devel] [PATCH for-next? 1/2] qemu-img: Fix typo Max Reitz
  2018-11-19 10:19 ` [Qemu-devel] [PATCH for-next? 2/2] qemu-img: Fix leak Max Reitz
@ 2018-11-21  1:23 ` John Snow
  2018-11-21  9:48 ` [Qemu-devel] " Kevin Wolf
  3 siblings, 0 replies; 5+ messages in thread
From: John Snow @ 2018-11-21  1:23 UTC (permalink / raw)
  To: Max Reitz, qemu-block; +Cc: Kevin Wolf, qemu-stable, qemu-devel



On 11/19/18 5:19 AM, Max Reitz wrote:
> One of the amend error paths has two issues that are fixed by this
> series.  Since they are relatively minor and have been present in 3.0
> already, I think there is no need to get them into 3.1.  OTOH they are
> bug fixes, so they could go into 3.1 if you, dear reader, insist.

I enjoy your use of "dear reader" in cover letters.

Not related to the above:

Reviewed-by: John Snow <jsnow@redhat.com>

> 
> 
> Max Reitz (2):
>   qemu-img: Fix typo
>   qemu-img: Fix leak
> 
>  qemu-img.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH for-next? 0/2] qemu-img: Minor fixes to an amend error path
  2018-11-19 10:19 [Qemu-devel] [PATCH for-next? 0/2] qemu-img: Minor fixes to an amend error path Max Reitz
                   ` (2 preceding siblings ...)
  2018-11-21  1:23 ` [Qemu-devel] [Qemu-block] [PATCH for-next? 0/2] qemu-img: Minor fixes to an amend error path John Snow
@ 2018-11-21  9:48 ` Kevin Wolf
  3 siblings, 0 replies; 5+ messages in thread
From: Kevin Wolf @ 2018-11-21  9:48 UTC (permalink / raw)
  To: Max Reitz; +Cc: qemu-block, qemu-devel, qemu-stable

Am 19.11.2018 um 11:19 hat Max Reitz geschrieben:
> One of the amend error paths has two issues that are fixed by this
> series.  Since they are relatively minor and have been present in 3.0
> already, I think there is no need to get them into 3.1.  OTOH they are
> bug fixes, so they could go into 3.1 if you, dear reader, insist.

Thanks, applied to the block branch (looks like the dear reader
insists).

Kevin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-21  9:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-19 10:19 [Qemu-devel] [PATCH for-next? 0/2] qemu-img: Minor fixes to an amend error path Max Reitz
2018-11-19 10:19 ` [Qemu-devel] [PATCH for-next? 1/2] qemu-img: Fix typo Max Reitz
2018-11-19 10:19 ` [Qemu-devel] [PATCH for-next? 2/2] qemu-img: Fix leak Max Reitz
2018-11-21  1:23 ` [Qemu-devel] [Qemu-block] [PATCH for-next? 0/2] qemu-img: Minor fixes to an amend error path John Snow
2018-11-21  9:48 ` [Qemu-devel] " Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).