mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Don't free subtype field unconditionally.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
345c934993
commit
2a10112379
1 file changed
+2
-1
@@ -262,7 +262,8 @@ static void xenbus_release_device(struct device *dev)
|
||||
if (dev) {
|
||||
struct xenbus_device *xendev = to_xenbus_device(dev);
|
||||
|
||||
kfree(xendev->subtype);
|
||||
if (xendev->subtype)
|
||||
kfree(xendev->subtype);
|
||||
kfree(xendev);
|
||||
}
|
||||
}
|
||||
|
||||