]> xenbits.xensource.com Git - people/royger/linux-2.6.18-xen.git/commit
blkfront: avoid NULL de-reference in CDROM ioctl handling
authorJan Beulich <jbeulich@novell.com>
Fri, 8 Jul 2011 12:23:47 +0000 (13:23 +0100)
committerJan Beulich <jbeulich@novell.com>
Fri, 8 Jul 2011 12:23:47 +0000 (13:23 +0100)
commit1819eb3250466b2919f54dfe383331612483a557
treef75fc2bc62bc06b41b95bae73f0704d65c04c34a
parent69059b33907432fadc95c9920cdb365d4d4c8bbb
blkfront: avoid NULL de-reference in CDROM ioctl handling

Just like already done in the default case, for CDROM_GET_CAPABILITY
info->gd should not be blindly de-referenced, as the ioctl can be
called prior to full device setup having completed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/blkfront/blkfront.c