]> Pileus Git - ~andy/linux/commit
gpu: ion: IOCTL return success when error occurs
authorOlav Haugan <ohaugan@codeaurora.org>
Fri, 13 Dec 2013 22:23:56 +0000 (14:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:38 +0000 (08:55 -0800)
commita1c6b996ec1d9c78ab58f189719e1674fea3d2fb
tree1594325fa4d39a1fc134bd63931e8ad657571eec
parentee4c8aa9f94be03a69500af4b3c3a3efa5903ce0
gpu: ion: IOCTL return success when error occurs

ION_IOC_MAP, ION_IOC_SHARE, and ION_IOC_IMPORT may return
success when an error occurs.

Add correct error handling to ION_IOC_MAP, ION_IOC_SHARE, and
ION_IOC_IMPORT.

Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c