[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.0-testing] xsm: Avoid null dereference in flask get_page_sid
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1284396614 -3600 # Node ID 208129cefcb30ae476af9a934008addf04e77cdc # Parent 99b5871889e38c1b6a252e76dddd999b99ae5d7f xsm: Avoid null dereference in flask get_page_sid From: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx> xen-unstable changeset: 22144:ec31bb01c424 xen-unstable date: Mon Sep 13 17:27:22 2010 +0100 --- xen/xsm/flask/hooks.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -r 99b5871889e3 -r 208129cefcb3 xen/xsm/flask/hooks.c --- a/xen/xsm/flask/hooks.c Mon Sep 13 17:21:06 2010 +0100 +++ b/xen/xsm/flask/hooks.c Mon Sep 13 17:50:14 2010 +0100 @@ -340,7 +340,10 @@ static int get_page_sid(struct page_info default: /*Pages are implicitly labeled by domain ownership!*/ dsec = d->ssid; - *sid = dsec->sid; + if (dsec) + *sid = dsec->sid; + else + rc = -ENOENT; break; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |