diff options
| -rw-r--r-- | drivers/xen/pvcalls-front.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/pvcalls-front.c b/drivers/xen/pvcalls-front.c index afa3f1b5d807..d1e1d8d2b9d5 100644 --- a/drivers/xen/pvcalls-front.c +++ b/drivers/xen/pvcalls-front.c | |||
| @@ -1103,7 +1103,7 @@ static int pvcalls_front_remove(struct xenbus_device *dev) | |||
| 1103 | kfree(map); | 1103 | kfree(map); |
| 1104 | } | 1104 | } |
| 1105 | } | 1105 | } |
| 1106 | if (bedata->ref >= 0) | 1106 | if (bedata->ref != -1) |
| 1107 | gnttab_end_foreign_access(bedata->ref, 0, 0); | 1107 | gnttab_end_foreign_access(bedata->ref, 0, 0); |
| 1108 | kfree(bedata->ring.sring); | 1108 | kfree(bedata->ring.sring); |
| 1109 | kfree(bedata); | 1109 | kfree(bedata); |
