Re: [Xen-devel] [PATCH] xen-blkfront: avoid NULL de-reference in CDROM ioctl handling

2016-07-07 Thread Roger Pau Monne
On Thu, Jul 07, 2016 at 03:42:02AM -0600, Jan Beulich wrote: > >>> On 07.07.16 at 11:32, wrote: > > On Thu, Jul 07, 2016 at 01:40:54AM -0600, Jan Beulich wrote: > >> The ioctl can be called prior to full device setup having completed. > >> > >> Signed-off-by: Jan Beulich > >> --- > >> drivers/b

Re: [Xen-devel] [PATCH] xen-blkfront: avoid NULL de-reference in CDROM ioctl handling

2016-07-07 Thread Jan Beulich
>>> On 07.07.16 at 11:32, wrote: > On Thu, Jul 07, 2016 at 01:40:54AM -0600, Jan Beulich wrote: >> The ioctl can be called prior to full device setup having completed. >> >> Signed-off-by: Jan Beulich >> --- >> drivers/block/xen-blkfront.c |6 ++ >> 1 file changed, 2 insertions(+), 4 de

Re: [Xen-devel] [PATCH] xen-blkfront: avoid NULL de-reference in CDROM ioctl handling

2016-07-07 Thread Roger Pau Monne
On Thu, Jul 07, 2016 at 01:40:54AM -0600, Jan Beulich wrote: > The ioctl can be called prior to full device setup having completed. > > Signed-off-by: Jan Beulich > --- > drivers/block/xen-blkfront.c |6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > --- 4.7-rc6-xen.orig/drive

[Xen-devel] [PATCH] xen-blkfront: avoid NULL de-reference in CDROM ioctl handling

2016-07-07 Thread Jan Beulich
The ioctl can be called prior to full device setup having completed. Signed-off-by: Jan Beulich --- drivers/block/xen-blkfront.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) --- 4.7-rc6-xen.orig/drivers/block/xen-blkfront.c +++ 4.7-rc6-xen/drivers/block/xen-blkfront.c @@ -496,