Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174501
b: refs/heads/master
c: 46a79fa
h: refs/heads/master
i:
  174499: 7527d4e
v: v3
  • Loading branch information
Dan Carpenter authored and Dave Airlie committed Dec 3, 2009
1 parent e3396de commit 660081f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a95916f5465ad6c91398f17924949db7e0b5c36
refs/heads/master: 46a79fa08a9a890a12cf9ec3ce51800911a907bf
9 changes: 5 additions & 4 deletions trunk/drivers/gpu/drm/ttm/ttm_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,16 +274,17 @@ static int ttm_mem_init_kernel_zone(struct ttm_mem_global *glob,
static int ttm_mem_init_highmem_zone(struct ttm_mem_global *glob,
const struct sysinfo *si)
{
struct ttm_mem_zone *zone = kzalloc(sizeof(*zone), GFP_KERNEL);
struct ttm_mem_zone *zone;
uint64_t mem;
int ret;

if (unlikely(!zone))
return -ENOMEM;

if (si->totalhigh == 0)
return 0;

zone = kzalloc(sizeof(*zone), GFP_KERNEL);
if (unlikely(!zone))
return -ENOMEM;

mem = si->totalram;
mem *= si->mem_unit;

Expand Down

0 comments on commit 660081f

Please sign in to comment.