Skip to content
Snippets Groups Projects
Commit 46e3626a authored by Chen Gang's avatar Chen Gang Committed by Stefano Stabellini
Browse files

xen/grant-table: refactor error cleanup in grow_gnttab_list()


The cleanup loop in grow_gnttab_list() is safe from the underflow of
the unsigned 'i' since nr_glist_frames is >= 1, but refactor it
anyway.

Signed-off-by: default avatarChen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
parent 4fbb67e3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment