Commit 9e3a7662 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[AGPGART] If ati_create_gatt_pages() fails, don't propagate an address we've freed.

parent 36ab7956
...@@ -131,6 +131,7 @@ static int ati_create_gatt_pages(int nr_tables) ...@@ -131,6 +131,7 @@ static int ati_create_gatt_pages(int nr_tables)
i--; i--;
} }
kfree (tables); kfree (tables);
tables = NULL;
retval = -ENOMEM; retval = -ENOMEM;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment