aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/dma-buf/dma-heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma-buf/dma-heap.c')
-rw-r--r--drivers/dma-buf/dma-heap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c
index a24721496114..1886aee46131 100644
--- a/drivers/dma-buf/dma-heap.c
+++ b/drivers/dma-buf/dma-heap.c
@@ -157,7 +157,8 @@ static long dma_heap_ioctl(struct file *file, unsigned int ucmd,
ret = dma_heap_ioctl_allocate(file, kdata);
break;
default:
- return -ENOTTY;
+ ret = -ENOTTY;
+ goto err;
}
if (copy_to_user((void __user *)arg, kdata, out_size) != 0)