Merge "drivers: dma-removed: page align size on free"
This commit is contained in:
commit
d3462b2761
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*
|
||||
* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
|
||||
* Copyright (C) 2000-2004 Russell King
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
|
@ -296,6 +296,7 @@ void removed_free(struct device *dev, size_t size, void *cpu_addr,
|
|||
attrs);
|
||||
struct removed_region *dma_mem = dev->removed_mem;
|
||||
|
||||
size = PAGE_ALIGN(size);
|
||||
if (!no_kernel_mapping)
|
||||
iounmap(cpu_addr);
|
||||
mutex_lock(&dma_mem->lock);
|
||||
|
|
Loading…
Add table
Reference in a new issue