Can this go in?
On Mon, Dec 21, 2009 at 4:51 PM, Maarten Maathuis <[email protected]> wrote: > --- > nouveau/nouveau_bo.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/nouveau/nouveau_bo.c b/nouveau/nouveau_bo.c > index 10cc8a6..9d584a3 100644 > --- a/nouveau/nouveau_bo.c > +++ b/nouveau/nouveau_bo.c > @@ -444,8 +444,10 @@ nouveau_bo_map_range(struct nouveau_bo *bo, uint32_t > delta, uint32_t size, > if (!(flags & NOUVEAU_BO_NOSYNC)) { > ret = nouveau_bo_wait(bo, (flags & NOUVEAU_BO_WR), > (flags & NOUVEAU_BO_NOWAIT), 0); > - if (ret) > + if (ret) { > + nouveau_bo_unmap(bo); > return ret; > + } > } > > bo->map = (char *)nvbo->map + delta; > -- > 1.6.5.4 > > _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
