diff options
Diffstat (limited to 'drivers/gpu/drm/via/via_dmablit.c')
-rw-r--r-- | drivers/gpu/drm/via/via_dmablit.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/via/via_dmablit.c b/drivers/gpu/drm/via/via_dmablit.c index 409e00afdd07..327380888b4a 100644 --- a/drivers/gpu/drm/via/via_dmablit.c +++ b/drivers/gpu/drm/via/via_dmablit.c | |||
@@ -195,10 +195,8 @@ via_free_sg_info(struct pci_dev *pdev, drm_via_sg_info_t *vsg) | |||
195 | default: | 195 | default: |
196 | vsg->state = dr_via_sg_init; | 196 | vsg->state = dr_via_sg_init; |
197 | } | 197 | } |
198 | if (vsg->bounce_buffer) { | 198 | vfree(vsg->bounce_buffer); |
199 | vfree(vsg->bounce_buffer); | 199 | vsg->bounce_buffer = NULL; |
200 | vsg->bounce_buffer = NULL; | ||
201 | } | ||
202 | vsg->free_on_sequence = 0; | 200 | vsg->free_on_sequence = 0; |
203 | } | 201 | } |
204 | 202 | ||