diff options
| author | Dan Carpenter <[email protected]> | 2016-10-13 12:55:08 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-10-24 13:36:15 +0000 |
| commit | cf55902b9c306ed259eb57ff111a0c152620f4a6 (patch) | |
| tree | 52336fa644b83a8b467b9b64f1218f25be5f9920 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | Merge tag 'iio-fixes-for-4.9a' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff) | |
| download | kernel-cf55902b9c306ed259eb57ff111a0c152620f4a6.tar.gz kernel-cf55902b9c306ed259eb57ff111a0c152620f4a6.zip | |
staging: android: ion: Fix error handling in ion_query_heaps()
If the copy_to_user() fails we should unlock and return directly without
updating "cnt". Also the return value should be -EFAULT instead of the
number of bytes remaining.
Fixes: 02b23803c6af ("staging: android: ion: Add ioctl to query available heaps")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
