projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
312b90f
)
vfio: don't dereference after kfree...
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 17 Aug 2012 23:49:09 +0000
(19:49 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 22 Aug 2012 14:23:04 +0000
(10:23 -0400)
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/vfio/vfio.c
patch
|
blob
|
history
diff --git
a/drivers/vfio/vfio.c
b/drivers/vfio/vfio.c
index 9591e2b509d794e93e596fe8f2c1da8c11691205..0b025d58de813ebe94c74a6518b66f045fb415e8 100644
(file)
--- a/
drivers/vfio/vfio.c
+++ b/
drivers/vfio/vfio.c
@@
-416,8
+416,9
@@
static void vfio_device_release(struct kref *kref)
/* Device reference always implies a group reference */
static void vfio_device_put(struct vfio_device *device)
{
+ struct vfio_group *group = device->group;
kref_put(&device->kref, vfio_device_release);
- vfio_group_put(
device->
group);
+ vfio_group_put(group);
}
static void vfio_device_get(struct vfio_device *device)