]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen-blkfront: check for null drvdata in blkback_changed (XenbusStateClosing)
authorCathy Avery <cathy.avery@oracle.com>
Fri, 23 Oct 2015 10:12:46 +0000 (18:12 +0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 30 Oct 2015 16:10:21 +0000 (09:10 -0700)
commitbc9a10ed433fec684cee2332e9045f13aab6f36f
treeaac5306b01df7518cab0456d4a54dc13b67edf57
parent6484b8158f03c42574d9eaa68a51de54b079cfe1
xen-blkfront: check for null drvdata in blkback_changed (XenbusStateClosing)

Orabug: 21935345

xen-blkfront will crash if the check to talk_to_blkback()
in blkback_changed()(XenbusStateInitWait) returns an error.
The driver data is freed and info is set to NULL. Later during
the close process via talk_to_blkback's call to xenbus_dev_fatal()
the null pointer is passed to and dereference in blkfront_closing.

Signed-off-by: Cathy Avery <cathy.avery@oracle.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/block/xen-blkfront.c