Merge "ion: ensure valid start address"
This commit is contained in:
commit
8e181ea4e8
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -745,7 +745,7 @@ long msm_ion_custom_ioctl(struct ion_client *client,
|
|||
data.flush_data.offset;
|
||||
end = start + data.flush_data.length;
|
||||
|
||||
if (check_vaddr_bounds(start, end)) {
|
||||
if (start && check_vaddr_bounds(start, end)) {
|
||||
pr_err("%s: virtual address %pK is out of bounds\n",
|
||||
__func__, data.flush_data.vaddr);
|
||||
ret = -EINVAL;
|
||||
|
|
Loading…
Add table
Reference in a new issue