Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249412
b: refs/heads/master
c: f92e883
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed May 10, 2011
1 parent 8cac61c commit c5f9823
Show file tree
Hide file tree
Showing 3 changed files with 5 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: ea1ce3762b0ed9647d002dad8f3745c2ae534d0a
refs/heads/master: f92e88343e713c65f6edef4ed7883ba37a8ccbfd
6 changes: 3 additions & 3 deletions trunk/drivers/staging/gma500/psb_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ static int psb_gem_create(struct drm_file *file,
/* Allocate our object - for now a direct gtt range which is not
stolen memory backed */
r = psb_gtt_alloc_range(dev, size, "gem", 0);
if (IS_ERR(r))
return PTR_ERR(r);
if (r == NULL)
return -ENOSPC;
/* Initialize the extra goodies GEM needs to do all the hard work */
if (drm_gem_object_init(dev, &r->gem, size) != 0) {
psb_gtt_free_range(dev, r);
Expand Down Expand Up @@ -135,7 +135,7 @@ static int psb_gem_create(struct drm_file *file,
int psb_gem_dumb_create(struct drm_file *file, struct drm_device *dev,
struct drm_mode_create_dumb *args)
{
args->pitch = ALIGN(args->width & ((args->bpp + 1) / 8), 64);
args->pitch = ALIGN(args->width * ((args->bpp + 7) / 8), 64);
args->size = args->pitch * args->height;
return psb_gem_create(file, dev, args->size, &args->handle);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/gma500/psb_gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ struct gtt_range *psb_gtt_alloc_range(struct drm_device *dev, int len,
} else {
/* The rest we will use for GEM backed objects */
start = r->start + dev_priv->pg->stolen_size;
end = -1;
end = r->end;
}

gt = kzalloc(sizeof(struct gtt_range), GFP_KERNEL);
Expand Down

0 comments on commit c5f9823

Please sign in to comment.