summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max8998.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2013-12-13 14:25:00 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-14 08:57:18 -0800
commita14baf71b91845a7f68438d48f462cb754699ae2 (patch)
tree276daf4beb92235972d87bc5da5cc131b7b47b16 /drivers/mfd/max8998.c
parent83271f6262c91a49df325c52bec8f00f4de294ca (diff)
downloadop-kernel-dev-a14baf71b91845a7f68438d48f462cb754699ae2.zip
op-kernel-dev-a14baf71b91845a7f68438d48f462cb754699ae2.tar.gz
ion: fix crash when alloc len is -1
If userspace passes a length between -4095 and -1 to allocate it will pass the len != 0 check, but when len is page aligned it will be 0. Check len after page aligning. Drop the warning as well, userspace shouldn't be able to trigger a warning in the kernel. Signed-off-by: Colin Cross <ccross@android.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mfd/max8998.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud