David Vrabel
5903c6bd1a
xen/gntalloc: safely delete grefs in add_grefs() undo path
...
If a gref could not be added (perhaps because the limit has been
reached or there are no more grant references available), the undo
path may crash because __del_gref() frees the gref while it is being
used for a list iteration.
A comment suggests that using list_for_each_entry() is safe since the
gref isn't removed from the list being iterated over, but it is freed
and thus list_for_each_entry_safe() must be used.
Also, explicitly delete the gref from the local per-file list, even
though this is not strictly necessary.
Signed-off-by: David Vrabel <david.vrabel@citrix.com >
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com >
2014-09-04 13:14:05 +01:00
..
2014-08-06 20:34:19 -07:00
2014-08-06 21:14:42 -07:00
2014-08-08 15:57:28 -07:00
2014-08-06 21:14:42 -07:00
2014-07-31 13:45:32 -04:00
2014-08-08 15:57:28 -07:00
2014-07-31 01:07:28 +02:00
2014-08-08 11:34:32 -07:00
2014-08-10 21:31:04 -07:00
2014-08-08 11:14:29 -07:00
2014-08-08 11:14:29 -07:00
2014-08-08 11:14:29 -07:00
2014-08-09 08:24:36 -07:00
2014-08-08 15:57:28 -07:00
2014-08-06 20:07:24 -07:00
2014-08-04 17:21:59 -07:00
2014-08-06 09:38:14 -07:00
2014-08-08 15:57:33 -07:00
2014-08-08 18:00:35 -07:00
2014-08-09 17:46:39 -07:00
2014-08-08 17:39:48 -07:00
2014-08-06 20:06:14 -07:00
2014-08-04 17:32:24 -07:00
2014-08-06 18:01:23 -07:00
2014-08-09 09:15:07 -07:00
2014-08-05 21:16:46 -07:00
2014-08-04 18:36:12 -07:00
2014-08-08 15:57:28 -07:00
2014-08-08 17:39:48 -07:00
2014-08-08 11:00:26 -07:00
2014-08-08 11:14:29 -07:00
2014-08-02 15:03:58 -07:00
2014-08-08 11:34:32 -07:00
2014-08-06 18:01:19 -07:00
2014-08-07 17:23:16 -07:00
2014-07-29 01:57:25 -07:00
2014-08-04 16:23:30 -07:00
2014-08-08 15:57:28 -07:00
2014-07-29 19:26:30 -05:00
2014-08-07 17:17:39 -07:00
2014-08-08 11:34:32 -07:00
2014-08-07 17:17:39 -07:00
2014-08-08 18:13:21 -07:00
2014-08-08 15:57:30 -07:00
2014-08-05 17:46:42 -07:00
2014-08-08 15:57:25 -07:00
2014-08-08 11:34:32 -07:00
2014-08-07 08:50:34 -07:00
2014-08-08 11:34:32 -07:00
2014-08-08 11:34:32 -07:00
2014-08-10 11:13:58 -07:00
2014-07-30 00:23:09 +02:00
2014-08-08 11:14:29 -07:00
2014-08-08 18:06:29 -07:00
2014-08-08 15:57:24 -07:00
2014-08-07 17:17:39 -07:00
2014-08-08 15:57:47 -07:00
2014-08-07 08:41:00 -07:00
2014-08-05 18:57:18 -07:00
2014-08-08 15:57:29 -07:00
2014-08-08 11:00:26 -07:00
2014-08-08 15:57:47 -07:00
2014-08-06 20:10:32 -07:00
2014-08-08 15:57:47 -07:00
2014-08-06 21:03:53 -07:00
2014-08-01 15:48:08 -07:00
2014-08-05 15:28:48 +10:00
2014-08-10 21:31:58 -07:00
2014-07-27 21:07:15 +09:30
2014-08-08 15:57:30 -07:00
2014-08-07 08:47:00 -07:00
2014-09-04 13:14:05 +01:00
2014-08-04 17:32:24 -07:00
2014-08-04 18:34:04 -07:00