From 985fe4149b2e002609e8ea550e01e51194c2d787 Mon Sep 17 00:00:00 2001 From: David Vrabel Date: Fri, 12 Dec 2008 13:25:21 +0000 Subject: [PATCH] --- yaml --- r: 125128 b: refs/heads/master c: fe6e87a4b570d2e435709746ba550a7197016bd0 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/usb/wusbcore/reservation.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index c88bdd572e29..cb66f01ce854 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 671e470ed04865ca148b83f46319d14547481340 +refs/heads/master: fe6e87a4b570d2e435709746ba550a7197016bd0 diff --git a/trunk/drivers/usb/wusbcore/reservation.c b/trunk/drivers/usb/wusbcore/reservation.c index c37e4f83e54a..4ed97360c046 100644 --- a/trunk/drivers/usb/wusbcore/reservation.c +++ b/trunk/drivers/usb/wusbcore/reservation.c @@ -110,6 +110,9 @@ int wusbhc_rsv_establish(struct wusbhc *wusbhc) */ void wusbhc_rsv_terminate(struct wusbhc *wusbhc) { - uwb_rsv_terminate(wusbhc->rsv); - uwb_rsv_destroy(wusbhc->rsv); + if (wusbhc->rsv) { + uwb_rsv_terminate(wusbhc->rsv); + uwb_rsv_destroy(wusbhc->rsv); + wusbhc->rsv = NULL; + } }