[Xen-devel] [PATCH] xen/scsiback: add error handling for xenbus_printf

2018-06-11 Thread Zhouyang Jia
When xenbus_printf fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling xenbus_printf. Signed-off-by: Zhouyang Jia --- drivers/xen/xen-scsiback.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git

[Xen-devel] [PATCH] xen: add error handling for xenbus_printf

2018-06-11 Thread Zhouyang Jia
When xenbus_printf fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling xenbus_printf. Signed-off-by: Zhouyang Jia --- drivers/xen/manage.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a

[Xen-devel] [PATCH] scsi: xen-scsifront: add error handling for xenbus_printf

2018-06-11 Thread Zhouyang Jia
When xenbus_printf fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling xenbus_printf. Signed-off-by: Zhouyang Jia --- drivers/scsi/xen-scsifront.c | 31 --- 1 file changed, 24 insertions(+), 7

Re: [Xen-devel] [PATCH] scsi: xen-scsifront: add error handling for xenbus_printf

2018-06-14 Thread Zhouyang Jia
Hi, Sorry for the mistakes, I'll fix this in v2. Best, Zhouyang 2018-06-13 18:09 GMT+08:00 Finn Thain : > On Tue, 12 Jun 2018, Zhouyang Jia wrote: > > > When xenbus_printf fails, the lack of error-handling code may > > cause unexpected results. > > > > This p

[Xen-devel] [PATCH v2] scsi: xen-scsifront: add error handling for xenbus_printf

2018-06-14 Thread Zhouyang Jia
When xenbus_printf fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling xenbus_printf. Signed-off-by: Zhouyang Jia --- v1->v2: - Fix dereferencing before checking --- drivers/scsi/xen-scsifront.c |

[Xen-devel] [PATCH v3] scsi: xen-scsifront: add error handling for xenbus_printf

2018-06-14 Thread Zhouyang Jia
When xenbus_printf fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling xenbus_printf. Signed-off-by: Zhouyang Jia --- v1->v2: - Fix dereferencing before checking v2->v3: - Use xenbus_dev_error to report errors. --- driver

[Xen-devel] [PATCH v2] xen: add error handling for xenbus_printf

2018-06-14 Thread Zhouyang Jia
When xenbus_printf fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling xenbus_printf. Signed-off-by: Zhouyang Jia --- v1->v2: - Add __func__. --- drivers/xen/manage.c | 18 +++--- 1 file changed, 15 insertions(+)

Re: [Xen-devel] [PATCH] xen: add error handling for xenbus_printf

2018-06-14 Thread Zhouyang Jia
Zhouyang Jia wrote: > > When xenbus_printf fails, the lack of error-handling code may > > cause unexpected results. > > > > This patch adds error-handling code after calling xenbus_printf. > > > > Signed-off-by: Zhouyang Jia > > --- > > drivers/xen

[Xen-devel] [PATCH v4] scsi: xen-scsifront: add error handling for xenbus_printf

2018-06-14 Thread Zhouyang Jia
When xenbus_printf fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling xenbus_printf. Signed-off-by: Zhouyang Jia --- v1->v2: - Fix dereferencing before checking. v2->v3: - Use xenbus_dev_error to report errors. v3->

[Xen-devel] [PATCH v5] scsi: xen-scsifront: add error handling for xenbus_printf

2018-06-15 Thread Zhouyang Jia
When xenbus_printf fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling xenbus_printf. Signed-off-by: Zhouyang Jia v1->v2: - Fix dereferencing before checking. v2->v3: - Use xenbus_dev_error to report errors. v3->

[Xen-devel] [PATCH v2] xen/scsiback: add error handling for xenbus_printf

2018-06-15 Thread Zhouyang Jia
When xenbus_printf fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling xenbus_printf. Signed-off-by: Zhouyang Jia --- v1->v2: - Use xenbus_dev_error to report errors. --- drivers/xen/xen-scsiback.c | 18 --

[Xen-devel] [PATCH v3] xen/scsiback: add error handling for xenbus_printf

2018-06-15 Thread Zhouyang Jia
When xenbus_printf fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling xenbus_printf. Signed-off-by: Zhouyang Jia --- v1->v2: - Use xenbus_dev_error to report errors. v2->v3: - Fix compilation errors. --- drivers/x