diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-13 17:53:11 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-13 17:53:11 +0000 |
commit | 7ad3b377a394c9342c3ab2f003d48b7cb3c0891d (patch) | |
tree | 4b6fc079f96d101d51ffbb0d9139191faa6b355b /src/sna/sna_video.c | |
parent | 8da8809d03734d92c3bcf478fe051077ce3caa29 (diff) |
sna/video: Use the right pointer for unmapping
Don't just deference any old random pointer, use the one we actually
mapped in the first place!
Reported-by: Matti Hamalainen <ccr@tnsp.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42880
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video.c')
-rw-r--r-- | src/sna/sna_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_video.c b/src/sna/sna_video.c index d3788fd0..068b8039 100644 --- a/src/sna/sna_video.c +++ b/src/sna/sna_video.c @@ -481,7 +481,7 @@ sna_video_copy_data(struct sna *sna, else sna_copy_packed_data(video, frame, buf, dst); - munmap(dst, video->buf->size); + munmap(dst, frame->bo->size); return TRUE; } |