xen/blkback: don't call vbd_size() if bd_disk is NULL
authorLaszlo Ersek <lersek@redhat.com>
Wed, 25 May 2011 10:24:25 +0000 (12:24 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 1 Jun 2011 13:28:20 +0000 (09:28 -0400)
commit6464920a6e30604cb71d0ecbaa20e35009bd76fb
treee4b8e6a06c6548d739176988c0bbdc21cafa40eb
parent4c49ff3fe128ca68dabd07537415c419ad7f82f9
xen/blkback: don't call vbd_size() if bd_disk is NULL

...because vbd_size() dereferences bd_disk if bd_part is NULL.

Signed-off-by: Laszlo Ersek<lersek@redhat.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/xenbus.c