Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169400391
D16446.id45856.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
624 B
Referenced Files
None
Subscribers
None
D16446.id45856.diff
View Options
Index: sys/dev/xen/grant_table/grant_table.c
===================================================================
--- sys/dev/xen/grant_table/grant_table.c
+++ sys/dev/xen/grant_table/grant_table.c
@@ -184,6 +184,10 @@
{
uint16_t flags, nflags;
+ if (ref == GRANT_REF_INVALID) {
+ return (0);
+ }
+
nflags = shared[ref].flags;
do {
if ( (flags = nflags) & (GTF_reading|GTF_writing) ) {
@@ -349,8 +353,10 @@
int ref, error;
error = get_free_entries(count, &ref);
- if (__predict_false(error))
+ if (__predict_false(error)) {
+ *head = GNTTAB_LIST_END;
return (error);
+ }
*head = ref;
return (0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 2, 10:39 AM (4 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37919788
Default Alt Text
D16446.id45856.diff (624 B)
Attached To
Mode
D16446: Xen: Fix potential page faults in the grant_table.c
Attached
Detach File
Event Timeline
Log In to Comment