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

2018-06-14 Thread Boris Ostrovsky
On 06/14/2018 12:08 PM, 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 > --- > v1->v2: > - Fix dereferencing before checking > ---

[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 | 29